public static void PlayerChooseGameMode() { Program code = new Program(); int playerAnswer = 0; Console.WriteLine("which mode?\n1) gameplay\n2) debugger\n3) Dictionary"); string playerInput = Console.ReadLine(); try { playerAnswer = Int32.Parse(playerInput); } catch { PlayerChooseGameMode(); } if (playerAnswer == 1) { Console.WriteLine("type a name for your Character"); string PlayerName = Console.ReadLine(); #region DeclarePlayerVariables player1 = new Player(PlayerName, 5, 5, "Y"); player1.Health += 40; player1.maxHealth += 40; player1.Strength += 2; player1.Dodge += 1; player1.Intellect += 1; player1.level = 0; #endregion PlayerChooseLoadout(); } if (playerAnswer == 2) { #region DeclareDebuggerVariables int howManyMonsters = GetRandom(2, 5); player1 = new Player("", 5, 5, "Y"); MonsterFactory code1 = new MonsterFactory(); List <Monster> monsters = new List <Monster>(); int playerHowFast = 0; #endregion while (howManyMonsters > 0) { Monster monster = code1.CreateRandomMonster(); if (howManyMonsters > 0) { monsters.Add(monster); howManyMonsters -= 1; } } Console.WriteLine("How fast?"); string playerInput2 = Console.ReadLine(); try { playerHowFast = Int32.Parse(playerInput2); } catch { } Thread.Sleep(playerHowFast); code.isDebuggerFight = true; code.DebuggerFight(monsters, playerHowFast); } if (playerAnswer == 3) { Dictionary.StartUp(); } }