public static void SaveState() { if (_pathSave is null) { throw new Exception("No path Specified when saving !"); } SaveAndLoad.Save(_pathSave, _listPlayer); }
/// <summary> /// save best player in folder save, you will be marked on this, so DON'T forget it! /// </summary> private static void SaveBest() { Factory.SetPathLoad(PathForTest); Factory.Init(); var soloList = new List <Player> { Factory.GetBestPlayer() }; SaveAndLoad.Save(PathBotToSubmit, soloList); Console.WriteLine("Saved Best Player"); }