static void Main(string[] args) { string jsonfile = "AllSets.json"; using (StreamReader r = new StreamReader(jsonfile)) { string json = r.ReadToEnd(); Program.Cards = JsonConvert.DeserializeObject<CardCollectionJson>(json); } while (true) { PlayTracker.Global.Update(); UpdateDisplay(); if (PlayTracker.Global.State == PlayTracker.GameState.NotInitialized || PlayTracker.Global.State == PlayTracker.GameState.Idle) { Thread.Sleep(5000); continue; } PlayAI.Global.Update(); } }
static void Main(string[] args) { string jsonfile = "AllSets.json"; using (StreamReader r = new StreamReader(jsonfile)) { string json = r.ReadToEnd(); Program.Cards = JsonConvert.DeserializeObject <CardCollectionJson>(json); } while (true) { PlayTracker.Global.Update(); UpdateDisplay(); if (PlayTracker.Global.State == PlayTracker.GameState.NotInitialized || PlayTracker.Global.State == PlayTracker.GameState.Idle) { Thread.Sleep(5000); continue; } PlayAI.Global.Update(); } }