+ 1
Id use classes and methods for that type of game.
Look at this code: (line 381 where explore() is defined)
https://code.sololearn.com/c2MshQeGSO1N/?ref=app
+ 1
Okay, first of all, before trying to make a game, you should make sure you understand the fundamentals of the language, otherwise you're just going to go through all the layers of hell and then some.
This is pretty simple, especially if you understand how loops work:
define data variable here
loop for input:
prompt for user input, store in variable
is the user done? if yes, break from loop. no? go back to the start of the loop
use data variable down here
This is just psuedo-code to get the idea across to you, but you have to implement the correct python code. You can easily pop this into a function that returns the variable so it is easily reusable in many different applications.
If you want to be really fancy with it, you could use a function decorator that allows you to process the data depending on a separate function that you would pass to the body of the data function, but I won't go into detail.