MCPcopy Create free account
hub / github.com/dhbloo/rapfi / checkLastMoveIsNotPass

Function checkLastMoveIsNotPass

Rapfi/command/gomocup.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65bool checkLastMoveIsNotPass(Board &board)
66{
67 if (board.passMoveCount() > 0 && board.getLastMove() == Pos::PASS) {
68 ERRORL("Consecutive pass is not supported. "
69 "There must be one non-pass move between two pass moves.");
70 return true;
71 }
72 return false;
73}
74
75/// Parse a coord in form 'x,y' from in stream and check if the pos is legal.
76/// Legal means the pos must be an empty cell or an non-consecutive pass move.

Callers 2

parseLegalCoordFunction · 0.85
getPositionFunction · 0.85

Calls 2

passMoveCountMethod · 0.80
getLastMoveMethod · 0.80

Tested by

no test coverage detected