From ecfc6e1a68694ac7767f783d96a1781c38b57bf1 Mon Sep 17 00:00:00 2001 From: anastasosmoho Date: Mon, 21 Sep 2026 12:37:50 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20wo?= =?UTF-8?q?rks/Main.kt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/Main.kt | 65 --------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 works/Main.kt diff --git a/works/Main.kt b/works/Main.kt deleted file mode 100644 index ac92dc9..0000000 --- a/works/Main.kt +++ /dev/null @@ -1,65 +0,0 @@ -//TIP To Run code, press or -// click the icon in the gutter. -fun main() { - val name = "Kotlin" - //TIP Press with your caret at the highlighted text - // to see how IntelliJ IDEA suggests fixing it. - print("Введите тип карты: ") - val cardType = readln() - print("Введите подтип карты: ") - val cardSubtype = readln() - print("Введите название карты: ") - val cardName = readln() - - print("Введите описание эффекта: ") - val effectText = readln() - - print("Введите правило подтипа: ") - val ruleText = readln() - - print("Введите имя художника: ") - val illustrator = readln() - - - val healAmount = 60 - val cardNumber = 105 - val totalInSet = 106 - - - val separator = "======================================================================" - val thinSeparator = "----------------------------------------------------------------------" - - println(separator) - - - val titleLeft = "[${cardType}] ${cardName}" - println("${titleLeft.padEnd(60)}[${cardSubtype}]") - - println(thinSeparator) - - - val effectFormatted = effectText.replace("60 пунктов", "$healAmount пунктов") - .replace("пунктов урона", "пунктов\n урона") - println("Эффект: $effectFormatted") - println() - - - val ruleFormatted = ruleText.replace("использовать ", "использовать\n ") - println("Правило: $ruleFormatted") - - println(thinSeparator) - - - val bottomLeft = "Илл. $illustrator" - val bottomRight = "$cardNumber/$totalInSet ★" - println("${bottomLeft.padEnd(61)}$bottomRight") - - println(separator) - } - - for (i in 1..5) { - //TIP Press to start debugging your code. We have set one breakpoint - // for you, but you can always add more by pressing . - println("i = $i") - } -} \ No newline at end of file