generated from admin/template
64 lines
3.0 KiB
Markdown
64 lines
3.0 KiB
Markdown
# Техническое задание №1
|
|
|
|
* **Студент:** [Мастио Вячеслав Алексеевич]
|
|
|
|
---
|
|
|
|
## Ключевой код
|
|
```csharp
|
|
static void Main(string[] args)
|
|
{
|
|
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 attacck2Name = Console.ReadLine();
|
|
|
|
Console.Write("Введите, пожалуйста, описание второй атаки: ");
|
|
string attacck2Desc = 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 = 1.0;
|
|
int attack2Damage = 20;
|
|
int retreatCost = 1;
|
|
Console.Clear();
|
|
|
|
Console.WriteLine("======================================================================");
|
|
Console.WriteLine($"[{stage}]{name} ОЖ: {hp}[⚡]" );
|
|
Console.WriteLine("----------------------------------------------------------------------");
|
|
Console.WriteLine($"№ {number} | Вид: {category} | Рост: {height} | Вес: {weight}");
|
|
Console.WriteLine("----------------------------------------------------------------------");
|
|
Console.WriteLine($"[Атака 1]{attack1Name}");
|
|
Console.WriteLine($"Эффект: {attack1Desc}");
|
|
Console.WriteLine();
|
|
Console.WriteLine($"[Атака] {attacck2Name} Урон: {attack2Damage}+");
|
|
Console.WriteLine($"Эффект: {attacck2Desc}");
|
|
Console.WriteLine("----------------------------------------------------------------------");
|
|
Console.WriteLine($"Слабость: {weakness}");
|
|
Console.WriteLine($"Устойчиов: {resistance}");
|
|
Console.WriteLine($"Отступление: {retreatCost} энергия");
|
|
}
|
|
}
|
|
```
|