generated from admin/template
feat: выполнена стадия 1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Студент: [ФИО]
|
||||
* **Группа:** [Номер]
|
||||
* **Курс:** [Название дисциплины]
|
||||
# Студент: Прибыткова Елизавета Дмитриевна
|
||||
* **Группа:** 228
|
||||
* **Курс:** Разработка программных модулей
|
||||
|
||||
## Список работ
|
||||
* [Лабораторная работа №1](./works/lab-01)
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace lesson3
|
||||
else
|
||||
Console.WriteLine("\nНекорректная команда! Попробуйте снова.");
|
||||
}while (true);
|
||||
|
||||
//задание 1
|
||||
Console.WriteLine("Приготовьтесь!");
|
||||
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