コード例 #1
0
        public GameBoardView()
        {
            this.InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            var firstPlayer = new HumanPlayer("Koko", "X") { IsOnTurn = true };

            var secondPlayer = new HumanPlayer("Boko", "O");
            var gameBoardModel = new GameBoardModel(firstPlayer, secondPlayer);
            this.presenter = new GameBoardPresenter(this, gameBoardModel);
        }
コード例 #2
0
        public GameBoardView()
        {
            this.InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            var firstPlayer = new HumanPlayer("Koko", "X")
            {
                IsOnTurn = true
            };

            var secondPlayer   = new HumanPlayer("Boko", "O");
            var gameBoardModel = new GameBoardModel(firstPlayer, secondPlayer);

            this.presenter = new GameBoardPresenter(this, gameBoardModel);
        }