generated from admin/template
Обновить works/lab-01/миу миу.txt
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user