generated from admin/template
99 lines
3.6 KiB
C#
99 lines
3.6 KiB
C#
/*string pokemonName = "Чармандер";
|
|
string elementType = "Огонь";
|
|
int level = 1;
|
|
int hp = 95;
|
|
Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
|
|
Console.WriteLine($"Покемон: {pokemonName}");
|
|
Console.WriteLine($"Стихия: {elementType}");
|
|
Console.WriteLine($"Уровень: {level} | HP: {hp}");
|
|
|
|
Console.WriteLine("=== Интерактивный ввод и динамическое формирование документов ===");
|
|
|
|
Console.Write("Введите имя тренера:");
|
|
string trainerName = Console.ReadLine();
|
|
|
|
Console.Write("Введите имя покемона: ");
|
|
string pokemonName = Console.ReadLine();
|
|
|
|
Console.Write("Введите стихию: ");
|
|
string elementType = Console.ReadLine();
|
|
|
|
Console.Write("Введите регион: ");
|
|
string regionName = Console.ReadLine();
|
|
|
|
Console.WriteLine("****************************************");
|
|
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
|
|
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
|
|
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
|
|
Console.WriteLine("****************************************");*/
|
|
|
|
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();
|
|
string elementSymbol = "⚡";
|
|
|
|
int hp = 60;
|
|
int number = 25;
|
|
double height = 0.4;
|
|
double weight = 6.0;
|
|
int attack2Damage = 20;
|
|
int retreatCost = 1;
|
|
|
|
Console.Clear();
|
|
|
|
Console.WriteLine("======================================================================");
|
|
|
|
|
|
string headerLeft = $"[{stage}] {name}";
|
|
string headerRight = $"ОЖ: {hp} [{elementSymbol}]";
|
|
|
|
Console.WriteLine(headerLeft.PadRight(70 - headerRight.Length) + headerRight);
|
|
|
|
Console.WriteLine("----------------------------------------------------------------------");
|
|
Console.WriteLine($"№ {number} | Вид: {category} | Рост: {height} м | Вес: {weight} кг");
|
|
Console.WriteLine("----------------------------------------------------------------------");
|
|
|
|
|
|
Console.WriteLine($"[{attack1Name}]");
|
|
Console.WriteLine($"Эффект: {attack1Desc}");
|
|
Console.WriteLine();
|
|
|
|
|
|
string attack2Left = $"[{attack2Name}]";
|
|
string attack2Right = $"Урон: {attack2Damage}";
|
|
Console.WriteLine(attack2Left.PadRight(70 - attack2Right.Length) + attack2Right);
|
|
Console.WriteLine($"Эффект: {attack2Desc}");
|
|
|
|
Console.WriteLine("----------------------------------------------------------------------");
|
|
Console.WriteLine($"Слабость: {weakness}");
|
|
Console.WriteLine($"Устойчивость: {resistance}");
|
|
Console.WriteLine($"Отступление: {retreatCost}");
|
|
Console.WriteLine("======================================================================");
|
|
|
|
|
|
|
|
|