MCPcopy Create free account
hub / github.com/XMuli/ChineseChess / machineChooseAndMovePieces

Method machineChooseAndMovePieces

MachineGame.cpp:285–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void MachineGame::machineChooseAndMovePieces()
286{
287 ChessStep* step = getBestMove();
288 if (step == nullptr)
289 return;
290
291 doMoveStone(step->m_nMoveID, step->m_nKillID, step->m_nRowTo, step->m_nnColTo);
292 m_nSelectID = -1;
293 delete step;
294 update();
295}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected