Lines Matching refs:wtm
18 int InputMove(TREE * RESTRICT tree, int ply, int wtm, int silent, in InputMove() argument
60 return InputMoveICS(tree, ply, wtm, silent, ponder_list, text); in InputMove()
96 if (wtm) { in InputMove()
111 if (wtm) { in InputMove()
278 mvp = GenerateCaptures(tree, MAXPLY, wtm, moves); in InputMove()
279 mvp = GenerateNoncaptures(tree, MAXPLY, wtm, mvp); in InputMove()
301 MakeMove(tree, MAXPLY, wtm, *mv); in InputMove()
302 if (Check(wtm) || (give_check && !Check(Flip(wtm)))) { in InputMove()
303 UnmakeMove(tree, MAXPLY, wtm, *mv); in InputMove()
306 UnmakeMove(tree, MAXPLY, wtm, *mv); in InputMove()
349 int InputMoveICS(TREE * RESTRICT tree, int ply, int wtm, int silent, in InputMoveICS() argument
386 if (wtm) { in InputMoveICS()
400 if (wtm) { in InputMoveICS()
455 mvp = GenerateCaptures(tree, MAXPLY, wtm, moves); in InputMoveICS()
456 mvp = GenerateNoncaptures(tree, MAXPLY, wtm, mvp); in InputMoveICS()
474 MakeMove(tree, MAXPLY, wtm, *mv); in InputMoveICS()
475 if (Check(wtm)) { in InputMoveICS()
476 UnmakeMove(tree, MAXPLY, wtm, *mv); in InputMoveICS()
479 UnmakeMove(tree, MAXPLY, wtm, *mv); in InputMoveICS()