diff --git a/works/Csharp/lab-03/lab-03/lab-04 csharp/reaadme.md b/works/Csharp/lab-03/lab-03/lab-04 csharp/reaadme.md index 1c88c1f..ab58b0d 100644 --- a/works/Csharp/lab-03/lab-03/lab-04 csharp/reaadme.md +++ b/works/Csharp/lab-03/lab-03/lab-04 csharp/reaadme.md @@ -1,4 +1,4 @@ -# Лабораторная работа №4 +````# Лабораторная работа №4 * Студент: [Грищенко Екатерина Ильинична] @@ -46,3 +46,4 @@ } Console.WriteLine("============================="); ``` +```` \ No newline at end of file diff --git a/works/Kotlin/lab-04/.gitignore b/works/Kotlin/lab-04/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/Kotlin/lab-04/.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/Kotlin/lab-04/src/Main.kt b/works/Kotlin/lab-04/src/Main.kt new file mode 100644 index 0000000..184e9c7 --- /dev/null +++ b/works/Kotlin/lab-04/src/Main.kt @@ -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) { + + } +} \ No newline at end of file