Esempio n. 1
0
 public static void PrintChessBoard(AbstractChessBoard chessBoard)
 {
     Line();
     DashLine();
     chessBoard.PrintBoard();
     DashLine();
     Line();
 }
Esempio n. 2
0
        public ChessGame(List <Player> players)
        {
            if (players.Count < 2)
            {
                throw new Exception("Player Count cannot be less than 2");
            }

            this.players   = players;
            currentPlayer  = players[0];
            chessBoard     = new NormalChessBoard(8, 8);
            this.gameState = GameState.NotStarted;
        }