From 09631863ab2a8f06a81fe4b5eb10c2690b341463 Mon Sep 17 00:00:00 2001 From: zxc <33+zxc@noreply.localhost> Date: Tue, 8 Sep 2026 09:06:45 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20works/lab-01/=D0=BC=D0=B8=D1=83=20=D0=BC=D0=B8=D1=83.t?= =?UTF-8?q?xt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-01/миу миу.txt | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) 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