Ejemplo n.º 1
0
        private void playerTurn_Tick(object sender, EventArgs e)
        {
            if (--this.currIdleTimeLeft <= 0)
            {
                aiMove();
                if (turnCount < 5 && !silence)
                {
                    Narrator.timedout(NarratorTxt, null);
                }

                this.currIdleTimeLeft = this.gamePageData.boardPlacementData.getIdleTime();
            }
        }
Ejemplo n.º 2
0
 private void playerTurn_Tick(object sender, EventArgs e)
 {
     /* If the user runs out of time... */
     if (--this.currIdleTimeLeft <= 0)
     {
         /* ... Let the ai play*/
         aiMove();
         if (turnCount < 5 && !silence)
         {
             Narrator.timedout(NarratorTxt, null);
         }
         /* Reset the idleTime counter */
         this.currIdleTimeLeft = this.gamePageData.boardPlacementData.getIdleTime();
     }
 }