コード例 #1
0
ファイル: Factory.cs プロジェクト: bjorn-grape/Genetics
 public static void SaveState()
 {
     if (_pathSave is null)
     {
         throw new Exception("No path Specified when saving !");
     }
     SaveAndLoad.Save(_pathSave, _listPlayer);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: bjorn-grape/Genetics
        /// <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");
        }