Exemplo n.º 1
0
        public Chess PlaceAChess(int x, int y)
        {
            Chess chess;

            if (_isBlack)
            {
                chess = _board.PlaceAChess(x, y, Chess.ChessType.Black);
            }
            else
            {
                chess = _board.PlaceAChess(x, y, Chess.ChessType.White);
            }
            if (chess != null)
            {
                CheckWinner();
                _isBlack = !_isBlack;
                return(chess);
            }
            return(null);
        }