generated from admin/template
Compare commits
2
Commits
d0d7201ecd
...
2d029e96f1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d029e96f1 | ||
|
|
a4c99eb9ea |
@@ -35,6 +35,7 @@ namespace lesson3
|
|||||||
else
|
else
|
||||||
Console.WriteLine("\nНекорректная команда! Попробуйте снова.");
|
Console.WriteLine("\nНекорректная команда! Попробуйте снова.");
|
||||||
}while (true);
|
}while (true);
|
||||||
|
|
||||||
//задание 1
|
//задание 1
|
||||||
Console.WriteLine("Приготовьтесь!");
|
Console.WriteLine("Приготовьтесь!");
|
||||||
for (int i = 3; i > 0; i--)
|
for (int i = 3; i > 0; i--)
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# Stage №1
|
||||||
|
|
||||||
|
* **Студент:** Прибыткова Елизавета Дмитриевна
|
||||||
|
* **Карточка:** #025 Pikachu
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Ключевой код
|
||||||
|
```csharp
|
||||||
|
// Самая важная часть реализации (методы, структуры, логика)
|
||||||
|
Console.Write("Введите стадию развития: ");
|
||||||
|
string stage = Console.ReadLine();
|
||||||
|
Console.Write("Введите имя покемона: ");
|
||||||
|
string name = Console.ReadLine();
|
||||||
|
Console.Write("Введите вид покемона: ");
|
||||||
|
string category = Console.ReadLine();
|
||||||
|
Console.Write("Введите название первой атаки: ");
|
||||||
|
string attack1Name = Console.ReadLine();
|
||||||
|
Console.Write("Введите эффект первой атаки: ");
|
||||||
|
string attack1Desc = Console.ReadLine();
|
||||||
|
Console.Write("Введите название второй атаки: ");
|
||||||
|
string attack2Name = Console.ReadLine();
|
||||||
|
Console.Write("Введите эффект второй атаки: ");
|
||||||
|
string attack2Desc = Console.ReadLine();
|
||||||
|
Console.Write("Введите уязвимость: ");
|
||||||
|
string weakness = Console.ReadLine();
|
||||||
|
Console.Write("Введите устойчивость: ");
|
||||||
|
string resistance = Console.ReadLine();
|
||||||
|
|
||||||
|
int hp = 60;
|
||||||
|
int number = 25;
|
||||||
|
double height = 0.4;
|
||||||
|
double weight = 6.0;
|
||||||
|
int attack2Damage = 20;
|
||||||
|
int retreatCost = 1;
|
||||||
|
|
||||||
|
Console.Clear();
|
||||||
|
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
|
Console.WriteLine($"[{stage}] {name} ОЖ: {hp}[⚡]");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"№ 0{number} | Вид: {category} | Рост: {height} м | Вес: {weight} кг");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"[Атака 1] {attack1Name}");
|
||||||
|
Console.WriteLine($"Эффект: {attack1Desc}");
|
||||||
|
Console.WriteLine($"[Атака 2] {attack2Name} Урон: {attack2Damage}+");
|
||||||
|
Console.WriteLine($"Эффект: {attack2Desc}");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"Слабость: {weakness}\nУстойчивость: {resistance}\nОтступление: {retreatCost} энергия");
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,41 @@
|
|||||||
|
|
||||||
|
Console.Write("Введите стадию развития: ");
|
||||||
|
string stage = Console.ReadLine();
|
||||||
|
Console.Write("Введите имя покемона: ");
|
||||||
|
string name = Console.ReadLine();
|
||||||
|
Console.Write("Введите вид покемона: ");
|
||||||
|
string category = Console.ReadLine();
|
||||||
|
Console.Write("Введите название первой атаки: ");
|
||||||
|
string attack1Name = Console.ReadLine();
|
||||||
|
Console.Write("Введите эффект первой атаки: ");
|
||||||
|
string attack1Desc = Console.ReadLine();
|
||||||
|
Console.Write("Введите название второй атаки: ");
|
||||||
|
string attack2Name = Console.ReadLine();
|
||||||
|
Console.Write("Введите эффект второй атаки: ");
|
||||||
|
string attack2Desc = Console.ReadLine();
|
||||||
|
Console.Write("Введите уязвимость: ");
|
||||||
|
string weakness = Console.ReadLine();
|
||||||
|
Console.Write("Введите устойчивость: ");
|
||||||
|
string resistance = Console.ReadLine();
|
||||||
|
|
||||||
|
int hp = 60;
|
||||||
|
int number = 25;
|
||||||
|
double height = 0.4;
|
||||||
|
double weight = 6.0;
|
||||||
|
int attack2Damage = 20;
|
||||||
|
int retreatCost = 1;
|
||||||
|
|
||||||
|
Console.Clear();
|
||||||
|
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
|
Console.WriteLine($"[{stage}] {name} ОЖ: {hp}[⚡]");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"№ 0{number} | Вид: {category} | Рост: {height} м | Вес: {weight} кг");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"[Атака 1] {attack1Name}");
|
||||||
|
Console.WriteLine($"Эффект: {attack1Desc}");
|
||||||
|
Console.WriteLine($"[Атака 2] {attack2Name} Урон: {attack2Damage}+");
|
||||||
|
Console.WriteLine($"Эффект: {attack2Desc}");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"Слабость: {weakness}\nУстойчивость: {resistance}\nОтступление: {retreatCost} энергия");
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
Reference in New Issue
Block a user