This commit is contained in:
2026-09-24 10:27:26 +03:00
parent 63e3def689
commit 8fe26a1ae2
3 changed files with 67 additions and 1 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
+33
View File
@@ -0,0 +1,33 @@
fun main(){
/* task 1
var deckSize = 60
var cardsInHand = 0
var targetDrawInput = readln().toInt()
while (cardsInHand < targetDrawInput && deckSize > 0){
cardsInHand++
deckSize--
}
println("[ДОБОР] Взята карта №$targetDrawInput В руке: $cardsInHand карт, в колоде осталось: $deckSize")
*/
/* task 2
var energyCost = -1
while(energyCost < 0) {
energyCost = readln().toInt()
if (energyCost < 0) {
println("[ОШИБКА] Стоимость атаки не может быть отрицательной! Попробуйте снова.")
}
else if (energyCost >= 0) {
println("[УСПЕХ] Корректная стоимость атаки принята: ...")
}
}
*/
enemyHpInput = readln().toInt()
var round = 1
while (round <= 10) {
}
}