generated from admin/template
65 lines
2.0 KiB
C#
65 lines
2.0 KiB
C#
namespace ConsoleApp3;
|
|
using System;
|
|
|
|
class Program
|
|
{
|
|
|
|
/* static void Main() {
|
|
int pokemonHp = 20;
|
|
Console.WriteLine("=== ПОКЕЦЕНТР: ЛЕЧЕНИЕ ===");
|
|
Console.WriteLine($"Здоровье до лечения: {pokemonHp} HP");
|
|
Console.WriteLine("[Покецентр] Покемон полностью здоров! Восстановлено 80 HP.");
|
|
HealPokemon(ref pokemonHp);
|
|
|
|
|
|
Console.WriteLine($"Здоровье после лечения: {pokemonHp} ");
|
|
}
|
|
|
|
static void HealPokemon(ref int healPokemon) {
|
|
healPokemon += 80;
|
|
}*/
|
|
|
|
/*static void Main()
|
|
{
|
|
SearchBushes(out string foundPokemon,out int pokemonLevel );
|
|
Console.WriteLine("=== ИССЛЕДОВАНИЕ ЛОКАЦИИ ===");
|
|
Console.WriteLine("Вы зашли в высокую траву");
|
|
Console.WriteLine($"Шорох! Из кустов появляется дикий {foundPokemon} (Уровень: {pokemonLevel})!");
|
|
}
|
|
|
|
static void SearchBushes(out string foundPokemon,out int pokemonLevel)
|
|
{
|
|
Random random = new Random();
|
|
pokemonLevel = random.Next(1,25);
|
|
foundPokemon = "Пикачу";
|
|
}*/
|
|
|
|
|
|
static void Main()
|
|
{
|
|
Console.WriteLine("=== РЕГИСТРАЦИЯ НА ТУРНИР ===");
|
|
double difficulty = 1.5;
|
|
RegisterTournament(in difficulty, "Булбазавр", "Чармандер");
|
|
Console.WriteLine("-----------------------------");
|
|
RegisterTournament(in difficulty, "Сквиртл", "Пикачу", "Псайдак", "Мяут");
|
|
Console.WriteLine("=============================");
|
|
|
|
Console.ReadLine();
|
|
}
|
|
|
|
|
|
static void RegisterTournament(in double difficulty, params string[] participants)
|
|
{
|
|
|
|
Console.WriteLine($"Коэффициент стадиона: {difficulty}");
|
|
Console.WriteLine("Список участников:");
|
|
foreach (string p in participants)
|
|
{
|
|
Console.WriteLine($" * {p}");
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|