added labs

This commit is contained in:
2026-09-25 16:25:09 +03:00
parent 2cdf2c97d5
commit ad0f0749e4
6 changed files with 75 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
fun main() {
val currentHpInput = readln().toInt()
val energyAttachedInput = readln().toInt()
if (currentHpInput<=0) {
println("Вы были нокаутированы!")
} else {
println("Покемон готов к Бою!")
}
val attackStatus = if (energyAttachedInput >= 3) "Готов к аттаке!" else "Нехватка энергии!"
val trainerCardInput = readln()
when (trainerCardInput) {
"Potion" -> println("Выше здоровье было восстановлено на 30 едениц!")
"Professor's Research" -> println("Доберите 7 карт из колоды!")
"Switch" -> println("Активный Покемон был заменён!")
else -> println("Неизвестная карта!")
}
}
+9
View File
@@ -0,0 +1,9 @@
# Лабораторная работа №1
* **Студент:** Закиров Алим Альбертович
* **Вариант / Карточка:** lesson-3
---
## Ключевой код
```csharp