diff --git a/works/CSharp/lab-04/Readme.md b/works/CSharp/lab-04/Readme.md index fb638b2..d41abf0 100644 --- a/works/CSharp/lab-04/Readme.md +++ b/works/CSharp/lab-04/Readme.md @@ -41,29 +41,28 @@ namespace lab04 int count1 = backpack.Count; Console.WriteLine($"Обновленный инвентарь. Осталось предметов: {count1}"); - Console.WriteLine("3 ЗАДАНИЕ"); - - Console.WriteLine("=== ИНВЕНТАРЬ ТРЕНЕРА ==="); - List backpack = new List(); - backpack.Add("Зелье HP"); - backpack.Add("Покебол"); - backpack.Add("Антидот"); - int count = backpack.Count; - Console.WriteLine($"Вы положили вещи в сумку. Предметов в инвентаре: {count}"); - Console.WriteLine("Вы использовали один Покебол для поимки дикого покемона!"); - backpack.Remove("Покебол"); - int count1 = backpack.Count; - Console.WriteLine($"Обновленный инвентарь. Осталось предметов: {count1}"); - Console.WriteLine(); - Console.WriteLine("--- Содержимое вашей сумки ---"); - foreach (string item in backpack) - { - Console.WriteLine($"[Предмет] -> {item}"); - } - Console.WriteLine("============================="); - } - } + Console.WriteLine("3 ЗАДАНИЕ"); + Console.WriteLine("=== ИНВЕНТАРЬ ТРЕНЕРА ==="); + List backpack = new List(); + backpack.Add("Зелье HP"); + backpack.Add("Покебол"); + backpack.Add("Антидот"); + int count = backpack.Count; + Console.WriteLine($"Вы положили вещи в сумку. Предметов в инвентаре: {count}"); + Console.WriteLine("Вы использовали один Покебол для поимки дикого покемона!"); + backpack.Remove("Покебол"); + int count1 = backpack.Count; + Console.WriteLine($"Обновленный инвентарь. Осталось предметов: {count1}"); + Console.WriteLine(); + Console.WriteLine("--- Содержимое вашей сумки ---"); + foreach (string item in backpack) + { + Console.WriteLine($"[Предмет] -> {item}"); + } + Console.WriteLine("============================="); + } + } } ВЫВОД: diff --git a/works/CSharp/stage-1/Readme.md b/works/CSharp/stage-1/Readme.md new file mode 100644 index 0000000..0e2297a --- /dev/null +++ b/works/CSharp/stage-1/Readme.md @@ -0,0 +1,97 @@ +# STAGE 1 + +* **Студент:** [Беляев Антон Сергеевич] +* **Вариант / Карточка:** [Например: #025 Pikachu] + +--- + +## Ключевой код +```csharp +using System; + +namespace stage01 +{ + class Stage04 + { + static void Main(string[] args) + { + Console.OutputEncoding = System.Text.Encoding.UTF8; //для отображения значка энергии; + + 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} ОЖ: {hp} [⚡]"); + 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} Урон: {attack2Damage}+"); + Console.WriteLine($"Эффект: {attack2Desc}"); + Console.WriteLine("----------------------------------------------------------------------"); + Console.WriteLine($"Слабость: {weakness}"); + Console.WriteLine($"Устойчивость: {resistance}"); + Console.WriteLine($"Отступление: {retreatCost} энергия"); + Console.WriteLine("======================================================================"); + } + } +} + +Вывод: + +Введите стадию развития (например, БАЗОВЫЙ): БАЗА +Введите имя покемона: Пикачу +Введите вид покемона: Мышь +Введите название первой атаки: Электроудар +Введите эффект первой атаки: Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше. +Введите название второй атаки: Быстрая Атака +Введите эффект второй атаки: Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше. +Введите уязвимость: Боевой х2 +Введите устойчивость: Стальной -20 + + + +====================================================================== +[БАЗА] Пикачу ОЖ: 60 [⚡] +---------------------------------------------------------------------- +№ 025 | Вид: Мышь | Рост: 0,4 м | Вес: 6,0 кг +---------------------------------------------------------------------- +[Атака 1] Электроудар +Эффект: Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше. + +[Атака 2] Быстрая Атака Урон: 20+ +Эффект: Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше. +---------------------------------------------------------------------- +Слабость: Боевой х2 +Устойчивость: Стальной -20 +Отступление: 1 энергия +====================================================================== + +Process finished with exit code 0. + diff --git a/works/CSharp/stage-1/stage-1.sln b/works/CSharp/stage-1/stage-1.sln new file mode 100644 index 0000000..1879a40 --- /dev/null +++ b/works/CSharp/stage-1/stage-1.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "stage-1", "stage-1\stage-1.csproj", "{A00EE43B-1529-46D9-89E1-2731C611F348}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A00EE43B-1529-46D9-89E1-2731C611F348}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A00EE43B-1529-46D9-89E1-2731C611F348}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A00EE43B-1529-46D9-89E1-2731C611F348}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A00EE43B-1529-46D9-89E1-2731C611F348}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/works/CSharp/stage-1/stage-1/Program.cs b/works/CSharp/stage-1/stage-1/Program.cs new file mode 100644 index 0000000..654beea --- /dev/null +++ b/works/CSharp/stage-1/stage-1/Program.cs @@ -0,0 +1,55 @@ +using System; + +namespace stage01 +{ + class Stage04 + { + static void Main(string[] args) + { + Console.OutputEncoding = System.Text.Encoding.UTF8; //для отображения значка энергии; + + 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} ОЖ: {hp} [⚡]"); + 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} Урон: {attack2Damage}+"); + Console.WriteLine($"Эффект: {attack2Desc}"); + Console.WriteLine("----------------------------------------------------------------------"); + Console.WriteLine($"Слабость: {weakness}"); + Console.WriteLine($"Устойчивость: {resistance}"); + Console.WriteLine($"Отступление: {retreatCost} энергия"); + Console.WriteLine("======================================================================"); + } + } +} \ No newline at end of file diff --git a/works/CSharp/stage-1/stage-1/stage-1.csproj b/works/CSharp/stage-1/stage-1/stage-1.csproj new file mode 100644 index 0000000..1c4dab0 --- /dev/null +++ b/works/CSharp/stage-1/stage-1/stage-1.csproj @@ -0,0 +1,11 @@ + + + + Exe + net10.0 + stage_1 + enable + enable + + + diff --git a/works/CSharp/stage-2/Readme.md b/works/CSharp/stage-2/Readme.md new file mode 100644 index 0000000..94cf805 --- /dev/null +++ b/works/CSharp/stage-2/Readme.md @@ -0,0 +1,98 @@ +# STAGE 2 + +* **Студент:** [Беляев Антон Сергеевич] +* **Вариант / Карточка:** [Например: #025 Pikachu] + +--- + +## Ключевой код +```csharp +using System; + +namespace lesson4 +{ + class lesson4 + { + static void Main(string[] args) + { + Console.WriteLine("Введите стадию развития покемона: "); + string stage = Console.ReadLine(); + Console.WriteLine("Введите имя покемона: "); + string name = Console.ReadLine(); + Console.WriteLine("Введите вид покемона: "); + string category = Console.ReadLine(); + Console.WriteLine("Введите название первой атаки покемона: "); + string attack1Name = Console.ReadLine(); + Console.WriteLine("Введите эффект первой атаки покемона: "); + string attack1Desc = Console.ReadLine(); + Console.WriteLine("Введите название второй атаки покемона: "); + string attack2Name = Console.ReadLine(); + Console.WriteLine("Введите эффект второй атаки покемона: "); + string attack2Desc = Console.ReadLine(); + Console.WriteLine("Введите уязвимость покемона: "); + string weakness = Console.ReadLine(); + Console.WriteLine("Введите устойчивость покемона: "); + 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.WriteLine("======================================================================"); + Console.WriteLine($"[БАЗА]{name } ОЖ: {hp} [⚡]"); + Console.WriteLine("----------------------------------------------------------------------"); + Console.WriteLine($"№ 0{number} | Вид: {category } | Рост: {height} м | Вес: {weight} кг"); + Console.WriteLine("----------------------------------------------------------------------"); + Console.WriteLine($"[Атака 1] {attack1Name} "); + Console.WriteLine($"Эффект: {attack1Desc}"); + Console.WriteLine($"[Атака 2] {attack2Name} Урон: {attack2Damage}+"); + Console.WriteLine(" "); + Console.WriteLine($"Эффект: {attack2Desc}"); + Console.WriteLine("----------------------------------------------------------------------"); + Console.WriteLine($"Слабость: {weakness}"); + Console.WriteLine($"Устойчивость: {resistance}"); + Console.WriteLine($"Отступление: {retreatCost} энергия"); + Console.WriteLine("======================================================================"); + } + } +} + +ВЫВОД: + +Введите стадию развития покемона: +БАЗОВЫЙ +Введите имя покемона: +Пикачу +Введите вид покемона: +Мышь +Введите название первой атаки покемона: +Электроудар +Введите эффект первой атаки покемона: +Брось монету. Если выпал орёл, активный Покемон твоего противника теперь парализован. +Введите название второй атаки покемона: +Быстрая Атака +Введите эффект второй атаки покемона: +Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше. +Введите уязвимость покемона: +Боевой x2 +Введите устойчивость покемона: +Стальной -20 +====================================================================== +[БАЗА]Пикачу ОЖ: 60 [?] +---------------------------------------------------------------------- +№ 025 | Вид: Мышь | Рост: 0,4 м | Вес: 6 кг +---------------------------------------------------------------------- +[Атака 1] Электроудар +Эффект: Брось монету. Если выпал орёл, активный Покемон твоего противника теперь парализован. +[Атака 2] Быстрая Атака Урон: 20+ + +Эффект: Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше. +---------------------------------------------------------------------- +Слабость: Боевой x2 +Устойчивость: Стальной -20 +Отступление: 1 энергия +====================================================================== + +Process finished with exit code 0. diff --git a/works/CSharp/stage-2/stage2.sln b/works/CSharp/stage-2/stage2.sln new file mode 100644 index 0000000..559d5a9 --- /dev/null +++ b/works/CSharp/stage-2/stage2.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "stage2", "stage2\stage2.csproj", "{D4A0BB15-C44B-4FEA-9208-51F026C9F3A0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D4A0BB15-C44B-4FEA-9208-51F026C9F3A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D4A0BB15-C44B-4FEA-9208-51F026C9F3A0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D4A0BB15-C44B-4FEA-9208-51F026C9F3A0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D4A0BB15-C44B-4FEA-9208-51F026C9F3A0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/works/CSharp/stage-2/stage2/Program.cs b/works/CSharp/stage-2/stage2/Program.cs new file mode 100644 index 0000000..f537eb8 --- /dev/null +++ b/works/CSharp/stage-2/stage2/Program.cs @@ -0,0 +1,65 @@ +using System; +using System.Globalization; + +namespace stage2 +{ + class Stage2 + { + static void Main(string[] args) + { + Console.WriteLine("Введите имя покемона: "); + string name = Console.ReadLine(); + Console.WriteLine("Введите название первой атаки покемона: "); + string attack1Name = Console.ReadLine(); + Console.WriteLine("Введите название второй атаки покемона: "); + string attack2Name = Console.ReadLine(); + Console.WriteLine("Введите очки здоровья покемона: "); + int hp = int.Parse(Console.ReadLine()); + Console.WriteLine("Введите базовый урон второй атаки покемона: "); + int attack2BaseDamage = int.Parse(Console.ReadLine()); + Console.WriteLine("Введите базовый урон входящей атаки противника: "); + int incomingDamage = int.Parse(Console.ReadLine()); + + Console.WriteLine("Введите результат броска монеты (1 — Орёл, 0 — Решка)"); + int cointoss = int.Parse(Console.ReadLine()); + int cointoss1 = int.Parse(Console.ReadLine()); + Console.WriteLine("======================================================================"); + switch (cointoss) + { + case 1: + int Weakness = incomingDamage * 2; + Console.WriteLine("Расчёт: Боевой тип! Урон удваивается (x2)."); + break; + case 2: + int Resistance = incomingDamage - 20; + Console.WriteLine("Расчёт: Стальной тип! Урон уменьшается на 20 (Resistance: -20)."); + break; + case 3: + Console.WriteLine("Расчёт: Обычный тип! Урон наносится без изменений. "); + break; + default: + Console.WriteLine("Ошибка: Выбран неизвестный тип атаки!"); + break; + } + Console.WriteLine("[Атака 1: Электроудар]"); + if (cointoss == 1) + { + Console.WriteLine($"Бросок монеты (1 - Орёл, 0 - Решка): {cointoss}"); + Console.WriteLine("Результат: Активный Покемон противника парализован!"); + } + else Console.WriteLine("Результат: Эффект паралича не сработал."); + + Console.WriteLine("[Атака 2: Быстрая Атака]"); + if (cointoss1 == 1) + { + cointoss1 = attack2BaseDamage + 10; + Console.WriteLine($"Бросок монеты (1 - Орёл, 0 - Решка): {cointoss}"); + Console.WriteLine($"Результат: Выпал орёл! Итоговый урон: {cointoss1}"); + } + else + { + Console.WriteLine($"Результат: Выпала решка! Итоговый урон:{cointoss1}"); + } + } + } +} \ No newline at end of file diff --git a/works/CSharp/stage-2/stage2/stage2.csproj b/works/CSharp/stage-2/stage2/stage2.csproj new file mode 100644 index 0000000..6c1dc92 --- /dev/null +++ b/works/CSharp/stage-2/stage2/stage2.csproj @@ -0,0 +1,10 @@ + + + + Exe + net10.0 + enable + enable + + + diff --git a/works/Kotlin/works/lab-05/.gitignore b/works/Kotlin/works/lab-05/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/Kotlin/works/lab-05/.gitignore @@ -0,0 +1,32 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Kotlin ### +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/works/Kotlin/works/lab-05/Readme.md b/works/Kotlin/works/lab-05/Readme.md new file mode 100644 index 0000000..8864cea --- /dev/null +++ b/works/Kotlin/works/lab-05/Readme.md @@ -0,0 +1,96 @@ +# Лабораторная работа №5 + +* **Студент:** [Беляев Антон Сергеевич] +* **Вариант / Карточка:** [Например: #025 Pikachu] + +--- + +## Ключевой код +```kotlin + +fun main() { + println("=== ФОРМИРОВАНИЕ КОЛОДЫ ===") + + val deck: MutableList = mutableListOf() + var counter = 1 + repeat(3) { + print("Введите карту №$counter: ") + val card = readln() + deck.add(card) + counter++ + } + + println("Колода собрана (${deck.size} карт): ${deck.joinToString(", ")}") + + print("Какую карту сбросить? ") + val discardedCard = readln() + val wasDiscarded = deck.remove(discardedCard) + if (wasDiscarded) { + println("Карта '$discardedCard' сброшена. Осталось: ${deck.size}") + } else { + println("Карта '$discardedCard' не найдена в колоде.") + } + + println("\n=== АНАЛИЗ РУКИ ===") + + val hand = mapOf( + "Pikachu" to "Pokemon", + "Potion" to "Trainer", + "Fire Energy" to "Energy", + "Professor's Research" to "Trainer" + ) + + val trainerCards = hand.filter {it.value == "Trainer"} + val trainerNames = trainerCards.map { it.key } + println("Карт Тренеров в руке: ${trainerCards.size} (${trainerNames.joinToString(", ")})") + + val allCards = hand.map {it.key} + + val energyCount = hand.count {it.value == "Energy"} + println("Карт энергии в руке: $energyCount") + println("Содержимое руки: ${allCards.joinToString(", ")}") + + println("\n=== УЧЕТ РЕСУРСОВ ===") + + print("Сколько энергии прикрепить? ") + val energyToAttach = readln().toInt() + + val resources = mutableMapOf("Trainer" to 2, "Energy" to 1) + resources["Energy"] = resources.getValue("Energy") + energyToAttach + + println("Ресурсы на столе: ") + for ((type, count) in resources) { + println("$type: $count шт.") + } + + println("\n========================================") + println("ИТОГ: Колода: ${deck.size} карт | Рука: ${hand.size} карт | Энергия на столе: ${resources["Energy"]}") + println("========================================") +} + +Вывод: + +=== ФОРМИРОВАНИЕ КОЛОДЫ === +Введите карту №1: Pikachu +Введите карту №2: Potion +Введите карту №3: Switch +Колода собрана (3 карт): Pikachu, Potion, Switch +Какую карту сбросить? Potion +Карта 'Potion' сброшена. Осталось: 2 + +=== АНАЛИЗ РУКИ === +Карт Тренеров в руке: 2 (Potion, Professor's Research) +Карт энергии в руке: 1 +Содержимое руки: Pikachu, Potion, Fire Energy, Professor's Research + +=== УЧЕТ РЕСУРСОВ === +Сколько энергии прикрепить? 2 +Ресурсы на столе: +Trainer: 2 шт. +Energy: 3 шт. + +======================================== +ИТОГ: Колода: 2 карт | Рука: 4 карт | Энергия на столе: 3 +======================================== + +Process finished with exit code 0 diff --git a/works/Kotlin/works/lab-05/src/Main.kt b/works/Kotlin/works/lab-05/src/Main.kt new file mode 100644 index 0000000..04d491c --- /dev/null +++ b/works/Kotlin/works/lab-05/src/Main.kt @@ -0,0 +1,61 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { + println("=== ФОРМИРОВАНИЕ КОЛОДЫ ===") + + val deck: MutableList = mutableListOf() + var counter = 1 + repeat(3) { + print("Введите карту №$counter: ") + val card = readln() + deck.add(card) + counter++ + } + + println("Колода собрана (${deck.size} карт): ${deck.joinToString(", ")}") + + print("Какую карту сбросить? ") + val discardedCard = readln() + val wasDiscarded = deck.remove(discardedCard) + if (wasDiscarded) { + println("Карта '$discardedCard' сброшена. Осталось: ${deck.size}") + } else { + println("Карта '$discardedCard' не найдена в колоде.") + } + + println("\n=== АНАЛИЗ РУКИ ===") + + val hand = mapOf( + "Pikachu" to "Pokemon", + "Potion" to "Trainer", + "Fire Energy" to "Energy", + "Professor's Research" to "Trainer" + ) + + val trainerCards = hand.filter {it.value == "Trainer"} + val trainerNames = trainerCards.map { it.key } + println("Карт Тренеров в руке: ${trainerCards.size} (${trainerNames.joinToString(", ")})") + + val allCards = hand.map {it.key} + + val energyCount = hand.count {it.value == "Energy"} + println("Карт энергии в руке: $energyCount") + println("Содержимое руки: ${allCards.joinToString(", ")}") + + println("\n=== УЧЕТ РЕСУРСОВ ===") + + print("Сколько энергии прикрепить? ") + val energyToAttach = readln().toInt() + + val resources = mutableMapOf("Trainer" to 2, "Energy" to 1) + resources["Energy"] = resources.getValue("Energy") + energyToAttach + + println("Ресурсы на столе: ") + for ((type, count) in resources) { + println("$type: $count шт.") + } + + println("\n========================================") + println("ИТОГ: Колода: ${deck.size} карт | Рука: ${hand.size} карт | Энергия на столе: ${resources["Energy"]}") + println("========================================") +}