コード例 #1
0
ファイル: SettingGame.cs プロジェクト: ItayLazarov/Checkers
        private static Board LoadGame()
        {
            Console.WriteLine("\nLoading...");

            List <string> listOfSavedGamesNames = DataBaseHandler.GetTheListOfSavedGames();

            if (listOfSavedGamesNames.Count == 0)
            {
                Console.WriteLine("\nSorry, There aren't Load Games...\n");
                return(CreateBoard(Colors.ChooseColor()));
            }

            return(ChooseTheSavedGame(listOfSavedGamesNames));
        }