From 539e89c0b5758e003902d072a311bb6d903f5b6d Mon Sep 17 00:00:00 2001 From: Katy328 Date: Wed, 9 Sep 2026 09:19:30 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?works/lab-02=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-02/Program (1).cs | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 works/lab-02/Program (1).cs diff --git a/works/lab-02/Program (1).cs b/works/lab-02/Program (1).cs new file mode 100644 index 0000000..2f229c0 --- /dev/null +++ b/works/lab-02/Program (1).cs @@ -0,0 +1,39 @@ +using System; + +class Program +{ + static void Main() + { + Console.OutputEncoding = System.Text.Encoding.UTF8; + + Console.WriteLine("Меню команд:"); + Console.WriteLine("1 — Атака"); + Console.WriteLine("2 — Инвентарь"); + Console.WriteLine("3 — Сменить покемона"); + Console.WriteLine("4 — Побег"); + + Console.Write("Введите номер действия: "); + string input = Console.ReadLine(); + + int choice = int.Parse(input); + + switch (choice) + { + case 1: + Console.WriteLine("Покемон наносит быстрый удар!"); + break; + case 2: + Console.WriteLine("Вы открыли сумку и применили Зелье Лечения."); + break; + case 3: + Console.WriteLine("Вы отозвали покемона и выпустили нового!"); + break; + case 4: + Console.WriteLine("Вы успешно сбежали из боя!"); + break; + default: + Console.WriteLine("Неизвестная команда! Вы пропустили ход."); + break; + } + } +} \ No newline at end of file