Example #1
0
        static void Main(string[] args)
        {
            Board         board         = new Board();
            WinConditions winConditions = new WinConditions();
            ComputerLogic computerLogic = new ComputerLogic(winConditions);
            BoardBuilder  boardBuilder  = new BoardBuilder();
            IO            io            = new IO();
            ValidateInput validateInput = new ValidateInput();
            UI            ui            = new UI(boardBuilder, io, validateInput);
            Game          game          = new Game(board, computerLogic, winConditions, ui);

            game.StartGame();
        }
Example #2
0
 public UI(BoardBuilder boardBuilder, IO io, ValidateInput validateInput)
 {
     this.boardBuilder  = boardBuilder;
     this.io            = io;
     this.validateInput = validateInput;
 }