Esempio n. 1
0
 private void TurnTicker_Tick(object sender, System.EventArgs e)
 {
     if (GameObj.IsRunning && !GameObj.IsOver)                   // game is in active state
     {
         GameObj.ShowPlayerTurn();
     }
 }
Esempio n. 2
0
        private void TurnTicker_Tick(object sender, System.EventArgs e)
        {
            if (Rules.whiteStartCounting)
            {
                whiteCountLabel.Text = Board.maxMoves.ToString();
            }
            else
            {
                whiteCountLabel.Text = "";
            }
            if (Rules.blackStartCounting)
            {
                blackCountLabel.Text = Board.maxMoves.ToString();
            }
            else
            {
                blackCountLabel.Text = "";
            }


            if (GameObj.IsRunning && !GameObj.IsOver)                   // game is in active state
            {
                GameObj.ShowPlayerTurn();
            }
        }