generated from admin/template
Начал lesson5
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//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 trainerCards = hand.filter { it.value == "Trainer" }
|
||||
val upperNames = hand.map { it.value }
|
||||
println(upperNames.joinToString(separator = ", "))
|
||||
|
||||
val energyToAttach = readln()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user