コード例 #1
0
ファイル: TicTacToeGame.cs プロジェクト: huwyss/KataCatalog
 public TicTacToeGame(TicTacToeObjects ticTacToeObjects)
 {
     _inputReader    = ticTacToeObjects.InputReader;
     _boardState     = ticTacToeObjects.BoardState;
     _humanPlayer    = ticTacToeObjects.HumanPlayer;
     _computerPlayer = ticTacToeObjects.ComputerPlayer;
     _pieceManager   = ticTacToeObjects.PieceManager;
 }
コード例 #2
0
ファイル: TicTacToeGame.cs プロジェクト: huwyss/KataTicTacToe
 public TicTacToeGame(TicTacToeObjects ticTacToeObjects)
 {
     _inputReader = ticTacToeObjects.InputReader;
     _boardState = ticTacToeObjects.BoardState;
     _humanPlayer = ticTacToeObjects.HumanPlayer;
     _computerPlayer = ticTacToeObjects.ComputerPlayer;
     _pieceManager = ticTacToeObjects.PieceManager;
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: huwyss/KataTicTacToe
        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();
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: huwyss/KataCatalog
        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();
        }