+ 2
Can i do a text based game with Python?
(Sorry for any english error. I'm Brazilian.) i was thinking about creating a game with Python, but im having some Issues. i have some experience with Batch from Windows command prompt, and with him i can make a text based game, but my real problem is that I don't know How to make The player choose something in Python (like type 1 to start, 2 to Help, etc.) wich i can do in Batch with Set /p anithinghere= can someone Help me pls?
4 Respuestas
+ 3
If it's just about choosing between options, I find this pattern convenient:
print ('choose 1, 2 or 3!')
while True:
x = input ()
if x in ('1', '2', '3'):
break
+ 1
You have to use inputs to make text-based games with Python. Just keep learning python. That's all!
Happy Coding, and good luck with your game!
I bet it will be amazing!
+ 1
i arealdy done...
+ 1
Go see my rock paper scissors game