Compare commits

...
2 Commits
Author SHA1 Message Date
ArhaNge1 dc1a698918 Merge branch 'main' of http://31.128.39.10:3000/Flins/RMP 2026-10-21 14:33:54 +03:00
ArhaNge1 5b815903d4 commit 2026-10-21 14:33:29 +03:00
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())
}