Eugen Martynov
02/11/2023, 7:33 PMorangy
Eugen Martynov
02/12/2023, 11:29 AMorangy
Eugen Martynov
02/12/2023, 1:58 PMorangy
Eugen Martynov
02/12/2023, 2:09 PMorangy
"$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