generated from admin/template
fixcode.1
This commit is contained in:
@@ -16,6 +16,7 @@ int result = amountPotion * potionCost;
|
|||||||
Console.WriteLine(result);
|
Console.WriteLine(result);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* less 2.1
|
||||||
int hp = int.Parse(Console.ReadLine());
|
int hp = int.Parse(Console.ReadLine());
|
||||||
|
|
||||||
if (hp <= 0)
|
if (hp <= 0)
|
||||||
@@ -35,3 +36,27 @@ else
|
|||||||
{
|
{
|
||||||
Console.WriteLine("Покемон полон сил и готов к бою!");
|
Console.WriteLine("Покемон полон сил и готов к бою!");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
Console.WriteLine("1: \n2: \n3: \n4");
|
||||||
|
|
||||||
|
int num = int.Parse(Console.ReadLine());
|
||||||
|
|
||||||
|
switch(num)
|
||||||
|
{
|
||||||
|
case 1 :
|
||||||
|
Console.WriteLine("Покемон наносит быстрый удар");
|
||||||
|
break;
|
||||||
|
case 2 :
|
||||||
|
Console.WriteLine("Вы открыли сумку и применили Зелье Лечения.");
|
||||||
|
break;
|
||||||
|
case 3 :
|
||||||
|
Console.WriteLine("Вы отозвали покемона и выпустили нового!");
|
||||||
|
break;
|
||||||
|
case 4 :
|
||||||
|
Console.WriteLine("Вы успешно сбежали из боя!");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Console.WriteLine("Неизвестная команда! Вы пропустили ход.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user