Example #1
0
 public static void Load(string path)
 {
     currentGame = new ObjectSerializer().Deserialize <Lottery>(XDocument.Load(path));
     Log.Write($"Existing lottery game loaded. Jackpot {currentGame.JackpotAmount}");
 }
Example #2
0
 public static void Restart(float jackpot)
 {
     currentGame = Lottery.New(GameParameters.StandardGame, jackpot);
     Log.Write($"New lottery game started. Jackpot {currentGame.JackpotAmount}");
 }