Exemplo n.º 1
0
 public static void SaveState()
 {
     if (_pathSave is null)
     {
         throw new Exception("No path Specified when saving !");
     }
     SaveAndLoad.Save(_pathSave, _listPlayer);
 }
Exemplo n.º 2
0
        /// <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");
        }