| 63 | } |
| 64 | |
| 65 | bool 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. |
no test coverage detected