コード例 #1
0
        //   The function is called when starting a new game.
        //    generates new secret chamber ID and reset game variable to initial value;

        public void NewGame()
        {
            // generate the secret chamber ID where bullet will be
            SecretChamberID  = NumGenerator.Next(1, NoOfChamber + 1);
            AwayCount        = 2; // Total Available away shots 2
            CurrentChamberID = 1; //always start on chamber 1
        }
コード例 #2
0
 public int MakeRandom()
 {
     return(NumGenerator.Next(1, 100));
 }