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

Method getSearchDepth

MachineGame.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23int MachineGame::getSearchDepth() const
24{
25 switch (m_difficulty) {
26 case AIDifficulty::Easy: return 1;
27 case AIDifficulty::Medium: return 3;
28 case AIDifficulty::Hard: return 5;
29 }
30 return 3;
31}
32
33void MachineGame::saveStep(int selectID, int checkedID, int row, int col, QVector<ChessStep *> &steps)
34{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected