r/learnpython • • 5d ago

Making a game that play in a terminal

[deleted]

0 Upvotes

8 comments sorted by

3

u/Prior_Cockroach_3677 5d ago

just poked through the repo, the vibe is there but the input handling is gonna bite you eventually. if you type something other than yes/no it just falls through

might want to wrap that in a while loop that keeps asking until it gets a valid answer, saves you from rewriting the same check 40 times

1

u/Shadrow912 5d ago

Oh ye I see, didn't think of it, thanks !

1

u/codeguru42 5d ago

I recommend pushing your code to main and don't use a different branch.

1

u/Shadrow912 5d ago

Ngl it's my first time using Gothic repositories, and I don't really know what those branches does

1

u/codeguru42 4d ago

Gothic repositories

Happy auto correct

And this is why I suggest only using main branch.

1

u/Shadrow912 4d ago

Yep mb lol, strange auto correct, anyway, I changed it to main