From a7c39ef218cf0a0192310a160249e96d6919a10f Mon Sep 17 00:00:00 2001
From: 328p <328p@BTK.MAIN>
Date: Mon, 14 Sep 2026 15:57:11 +0300
Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=20=D0=B4=D0=B5?=
=?UTF-8?q?=D0=BB=D0=B0=D1=82=D1=8C=20lesson4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
works/lab-04/lesson4/.gitignore | 32 ++++++++++++++++++++++++++++++++
works/lab-04/lesson4/src/Main.kt | 20 ++++++++++++++++++++
2 files changed, 52 insertions(+)
create mode 100644 works/lab-04/lesson4/.gitignore
create mode 100644 works/lab-04/lesson4/src/Main.kt
diff --git a/works/lab-04/lesson4/.gitignore b/works/lab-04/lesson4/.gitignore
new file mode 100644
index 0000000..3ddbf4c
--- /dev/null
+++ b/works/lab-04/lesson4/.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/lab-04/lesson4/src/Main.kt b/works/lab-04/lesson4/src/Main.kt
new file mode 100644
index 0000000..cfd4b10
--- /dev/null
+++ b/works/lab-04/lesson4/src/Main.kt
@@ -0,0 +1,20 @@
+//TIP To Run code, press or
+// click the icon in the gutter.
+fun main() {
+ println("=== ЧАСТЬ 1: НАБОР СТАРТОВОЙ РУКИ ===")
+ var deckSize = 60
+ var cardsInHandn = 0
+ print("Сколько карт взять в начале игры? ")
+ var targetDrawInput = readln()
+ var targetDraw: Int = targetDrawInput.toInt()
+ while(targetDraw > 0) {
+ println("[ДОБОР] Взята карта №${++cardsInHandn}. В руке: ${cardsInHandn} карт, в колоде осталось: ${--deckSize}")
+ --targetDraw
+ }
+ println("\n" + "=== ЧАСТЬ 3: АВТОМАТИЧЕСКИЙ БОЙ ===")
+
+ print("Сколько энергии требует сбросить атака? ")
+
+
+
+}