From 417bafe4188e8bed981d93756c7337b2e2417a12 Mon Sep 17 00:00:00 2001 From: anastasosmoho Date: Mon, 21 Sep 2026 12:27:28 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?works/kotlin=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/kotlin/Main.kt | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 works/kotlin/Main.kt diff --git a/works/kotlin/Main.kt b/works/kotlin/Main.kt new file mode 100644 index 0000000..3d9ee9e --- /dev/null +++ b/works/kotlin/Main.kt @@ -0,0 +1,58 @@ +//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) + }