This commit is contained in:
2026-09-14 14:13:25 +03:00
parent e0ef5e7b6d
commit c38878efa6
20 changed files with 969 additions and 0 deletions
+32
View File
@@ -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
+21
View File
@@ -0,0 +1,21 @@
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
fun main() {
val hand = mapOf(
"Pikachu" to "Pokemon",
"Potion" to "Trainer",
"Fire Energy" to "Energy",
"Professor's Research" to "Trainer")
val resources = mutableMapOf("Trainer" to 2, "Energy" to 1)
resources["Energy"] = resources.getValue("Energy") + energyToAttach
for ((type, count) in resources)
{
println("Тип: N шт. ")
}
print("=== ФОРМИРОВАНИЕ КОЛОДЫ ===")
val cardnumber = readln()
print("Введите карту №$cardnumber++:")
}