示例#1
0
        private void BoardDisplay_Load(object sender, EventArgs e)
        {
            gamemode.TurnChanged += OnTurnStarted;
            gamemode.GameStateChanged += OnGameStateUpdated;

            chessboard = gamemode.GenerateBoard();
            InstantiateUIBoard();

            UpdateBoard();

            // Starts game.
            backgroundWorkerMove.RunWorkerAsync();
        }