Ejemplo n.º 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}");
 }
Ejemplo n.º 2
0
 public static void Restart(float jackpot)
 {
     currentGame = Lottery.New(GameParameters.StandardGame, jackpot);
     Log.Write($"New lottery game started. Jackpot {currentGame.JackpotAmount}");
 }