generated from admin/template
anime1337
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
fun main() {
|
||||
// val deck: MutableList<String> = mutableListOf();
|
||||
// repeat(3, {deck.add(readln())})
|
||||
// var discradedCard = readln()
|
||||
// deck.add(discradedCard)
|
||||
// deck.remove(discradedCard)
|
||||
// var wasDiscraded : Boolean = deck.contains(discradedCard)
|
||||
// println(wasDiscraded)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//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"}
|
||||
//println(trainerCards)
|
||||
//val map = hand.map{it.value}
|
||||
//println(map.joinToString(","))
|
||||
//val energyCards = hand.count{it.value == "Energy"}
|
||||
// println(energyCards)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// val energyToAttach = readln().toInt()
|
||||
//val resources = mutableMapOf("Trainer" to 2, "Energy" to 1)
|
||||
//resources["Energy"] = resources.getValue("Energy") + energyToAttach
|
||||
//for ((type,count)in resources) {
|
||||
// println("Тип: $type $energyToAttach шт")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user