示例#1
0
 private void DoPostMoveProcessing(SquareState previousPlayerColor)
 {
     if (_board.GameOver)
     {
         MessageBox.Show("Game over!  Black: " + _board.BlackSquares +
                         " White: " + _board.WhiteSquares);
     }
     else if (_board.CurrentPlayer == previousPlayerColor)
     {
         MessageBox.Show("No moves for " + OthelloBoard.ColorNameFromSquareState(
                             _board.OtherPlayer));
     }
     PlayNextMove();
 }