Eugen Martynov
02/11/2023, 7:33 PMorangy
02/12/2023, 6:56 AMEugen Martynov
02/12/2023, 11:29 AMorangy
02/12/2023, 12:13 PMEugen Martynov
02/12/2023, 1:58 PMorangy
02/12/2023, 2:07 PMEugen Martynov
02/12/2023, 2:09 PMorangy
02/12/2023, 2:16 PM"$distance km: You are in the dark forest"
2. present options, initially just “go forward”, in the form of menu, like 1. Go forward 0. Exit game
3. readln
input and process it
4. execute selected action (for “go forward” it’s just distance++
)
5. go to #1
That’s it for a start!
Then, introduce random and if, two major building blocks for a start. Replace surroundings with “You are in ${place}“, where place
is something like
val place : String
val number = random(3)
if (number == 0) place = "the dark forest" else if (number == 1) place = "the smelly swamp" else place = "the shitty toilet"
Work with your and kid’s imagination to add more and more 🙂Eugen Martynov
02/12/2023, 2:22 PMandylamax
02/13/2023, 11:46 AMYoussef Shoaib [MOD]
02/19/2023, 4:58 PM