diff --git a/works/lab-01/миу миу.txt b/works/lab-01/миу миу.txt index aadcb47..114cb1c 100644 --- a/works/lab-01/миу миу.txt +++ b/works/lab-01/миу миу.txt @@ -61,5 +61,43 @@ class Program + } +} + + + +using System; + +class Program +{ + static void Main() + { + Console.WriteLine("=== Combat Menu ==="); + Console.WriteLine("1 — Attack"); + Console.WriteLine("2 — Inventory"); + Console.WriteLine("3 — Switch Pokemon"); + Console.WriteLine("4 — Escape"); + Console.Write("select action (1-4):"); + + int choice = int.Parse(Console.ReadLine()); + + switch (choice) + { + case 1: + Console.WriteLine("The Pokemon lands a quick hit!"); + break; + case 2: + Console.WriteLine("You opened your bag and used a Healing Potion."); + break; + case 3: + Console.WriteLine("You recalled your Pokemon and sent out a new one!"); + break; + case 4: + Console.WriteLine("You successfully escaped from the battle!"); + break; + default: + Console.WriteLine("Unknown command! You missed your turn."); + break; + } } } \ No newline at end of file