From 294b94b51161e647c4b63169f5d0c008c6817396 Mon Sep 17 00:00:00 2001 From: 128P <128P@BTK.MAIN> Date: Mon, 12 Oct 2026 10:27:41 +0300 Subject: [PATCH] file add --- works/kotel | 1 + works/lab-02/untitled/.gitignore | 32 +++++++++++++++++++++++++++ works/lab-02/untitled/src/Main.kt | 36 +++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 160000 works/kotel create mode 100644 works/lab-02/untitled/.gitignore create mode 100644 works/lab-02/untitled/src/Main.kt diff --git a/works/kotel b/works/kotel new file mode 160000 index 0000000..978d292 --- /dev/null +++ b/works/kotel @@ -0,0 +1 @@ +Subproject commit 978d29225e5decbfe8bac475b4eb76b907f4b0b1 diff --git a/works/lab-02/untitled/.gitignore b/works/lab-02/untitled/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-02/untitled/.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/lab-02/untitled/src/Main.kt b/works/lab-02/untitled/src/Main.kt new file mode 100644 index 0000000..796e7e8 --- /dev/null +++ b/works/lab-02/untitled/src/Main.kt @@ -0,0 +1,36 @@ + +fun main(){ + println("=== ИНИЦИАЛИЗАЦИЯ ПАРАМЕТРОВ ВХОДА===") + println("Текущий ход:") + val currentTurnInput = readln() + println("Доступно энергии:") + val energyInput = readln() + println("Множитель урона:") + val multiplierInput = readln() + + val currentTurn:Int = currentTurnInput.toInt() + + val energy:Int = energyInput.toInt() + + val multiplier: Double = multiplierInput.toDouble() + println("=== ИНИЦИАЛИЗАЦИЯ ПАРАМЕТРОВ ВХОДА===") + println("Текущий ход $currentTurn (тип Int)") + println("Доступно энергии $energy (тип int)") + println("Множитель урона $multiplier (тип Double)") + + + + var cardsPlayed = 0 + println("Игрок выводит Покемона на активную позицию!") + cardsPlayed += 1 + println("Введите базовый урон Покемона:") + val baseDamage = readln().toInt() + println("Применена карта Тренера 'Леди из центра Покемонов'!.11:44") + cardsPlayed += 1 + println("сколько карт энегии прикрепить к Покемону?") + println() + val energyAttached = readln().toInt() + cardsPlayed += energyAttached + + +} \ No newline at end of file