generated from admin/template
stage
This commit is contained in:
@@ -0,0 +1,73 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
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,-47} ОЖ: {hp,2} [⚡]");
|
||||||
|
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
|
||||||
|
Console.WriteLine($"№ {number:D3} | Вид: {category} | Рост: {height:F1} м | Вес: {weight:F1} кг");
|
||||||
|
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
|
||||||
|
Console.WriteLine($"[Атака 1] {attack1Name}");
|
||||||
|
Console.WriteLine($"Эффект: {attack1Desc}");
|
||||||
|
Console.WriteLine();
|
||||||
|
|
||||||
|
Console.WriteLine($"[Атака 2] {attack2Name,-47} Урон: {attack2Damage}+");
|
||||||
|
Console.WriteLine($"Эффект: {attack2Desc}");
|
||||||
|
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
|
||||||
|
Console.WriteLine($"Слабость: {weakness}");
|
||||||
|
Console.WriteLine($"Устойчивость: {resistance}");
|
||||||
|
Console.WriteLine($"Отступление: {retreatCost} энергия");
|
||||||
|
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# stage C# №1
|
||||||
|
|
||||||
|
## 📌 Тема
|
||||||
|
Оцифровка карточки Pokémon TCG
|
||||||
|
|
||||||
|
## 📝 Описание
|
||||||
|
мяу
|
||||||
|
## Ключевой код
|
||||||
|
```csharp
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
string name = "Пикачу";
|
||||||
|
int hp = 60;
|
||||||
|
Console.WriteLine($"Имя: {name}, ОЖ: {hp}");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user