コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        internal void OnGameStarted(object sender, GameStartedEventArgs e)
        {
            Refresh();

            var game = this.DataContext as Game;

            if (game.BlackPlayer.IsHuman())
            {
                game.PlayerMove(new GameMove(this.boardSize / 2, this.boardSize / 2));
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Florin-L/gomoku-akka
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnGameStarted(object sender, GameStartedEventArgs e)
 {
     this.gameStatusLabel.Text = "";
 }