This commit is contained in:
ArhaNge1
2026-10-21 14:33:29 +03:00
parent 52f3d12a0b
commit 5b815903d4
2 changed files with 54 additions and 0 deletions
+32
View File
@@ -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
+22
View File
@@ -0,0 +1,22 @@
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
fun main() {
print("Введите номер текущего хода: ")
val currentTurnInput: String = readln()
print("Количество доступной энергии: ")
val energyInput: String = readln()
print("коэффициент усиления атаки: ")
val multiplierInput: String = readln()
val currentTurn: Int = currentTurnInput.toInt()
val energy: Int = energyInput.toInt()
val multiplier: Double = multiplierInput.toDouble()
println("""=====Инициализация параметров хода====
| Текущий ход: $currentTurn
| Доступно энергии: $energy
| Множитель урона: $multiplier
| ====================================
""".trimMargin())
}