generated from admin/template
Обновить works/c#/stage1/Readme.md
This commit is contained in:
@@ -1 +1,70 @@
|
|||||||
##3
|
# отчет
|
||||||
|
|
||||||
|
1. ВВОД СТРОКОВЫХ ДАННЫХ ПОЛЬЗОВАТЕЛЕМ
|
||||||
|
|
||||||
|
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("Введите уязвимость (например, Боевой x2): ");
|
||||||
|
string weakness = Console.ReadLine();
|
||||||
|
|
||||||
|
Console.Write("Введите устойчивость (например, Стальной -20): ");
|
||||||
|
string resistance = Console.ReadLine();
|
||||||
|
|
||||||
|
2. ИНИЦИАЛИЗА ЧИСЛОВЫХ И СИСТЕМНЫХ ПАРАМЕТРОВ
|
||||||
|
|
||||||
|
int hp = 60;
|
||||||
|
int number = 25;
|
||||||
|
double height = 0.4;
|
||||||
|
double weight = 6.0;
|
||||||
|
int attack2Damage = 20;
|
||||||
|
int retreatCost = 1;
|
||||||
|
|
||||||
|
2. 1. Очистка консоли перед выводом итоговой карточки
|
||||||
|
|
||||||
|
Console.Clear();
|
||||||
|
|
||||||
|
3. ЭТАЛОННЫЙ ВЫВОД КАРТОЧКИ
|
||||||
|
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
|
Console.WriteLine($"[{stage}] {name} ОЖ: {hp} [⚡]");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"№ {number:D3} | Вид: {category} | Рост: {height} м | Вес: {weight:F1} кг");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"[Атака 1] {attack1Name}");
|
||||||
|
Console.WriteLine($"Эффект: {attack1Desc}");
|
||||||
|
Console.WriteLine();
|
||||||
|
Console.WriteLine($"[Атака 2] {attack2Name} Урон: {attack2Damage}+");
|
||||||
|
Console.WriteLine($"Эффект: {attack2Desc}");
|
||||||
|
Console.WriteLine("----------------------------------------------------------------------");
|
||||||
|
Console.WriteLine($"Слабость: {weakness}");
|
||||||
|
Console.WriteLine($"Устойчивость: {resistance}");
|
||||||
|
Console.WriteLine($"Отступление: {retreatCost} энергия");
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
|
|
||||||
|
* Ожидание перед закрытием консоли
|
||||||
|
*
|
||||||
|
Console.WriteLine();
|
||||||
|
Console.WriteLine("Нажмите любую клавишу для завершения...");
|
||||||
|
Console.ReadKey();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user