public GameVerifier GetVerifier(GameBoard board)
 {
     if (this.verifierType == VerifierType.Classic) {
         return new GameVerifier(board);
     }
     // Da wir derzeit nur einen Verifier haben, muss das so bleiben
     return new GameVerifier(board);
 }
Exemple #2
0
        public GameController(Player player1, Player player2, int boardSize = 3)
        {
            this.player = new Player[2] { player1, player2 };

            this.board = new GameBoard(new GameVerifierFactory(VerifierType.Classic), boardSize);

            Random random = new Random();
            this.currentPlayer = random.Next(0, 2);
        }
Exemple #3
0
 public GameVerifier(GameBoard board)
 {
     this.gameBoardArray = board.GameBoardArray;
 }