Exemple #1
0
        static void Main(string[] args)
        {
            var ticTacToeObjects = new TicTacToeObjects();
            var inputReader = new InputReader();
            var outputWriter = new OutputWriter();
            ticTacToeObjects.BoardState = new BoardState(outputWriter);
            ticTacToeObjects.HumanPlayer = new HumanPlayer(inputReader);
            ticTacToeObjects.ComputerPlayer = new ComputerPlayer();
            ticTacToeObjects.PieceManager = new PieceManager();

            TicTacToeGame game = new TicTacToeGame(ticTacToeObjects);
            game.RunGame();
            Console.ReadLine();
        }
Exemple #2
0
 public BoardState(OutputWriter outputWriter)
 {
     _outputWriter = outputWriter;
     Reset();
 }
Exemple #3
0
 public BoardState(OutputWriter outputWriter)
 {
     _outputWriter = outputWriter;
     Reset();
 }