#๐ Change game/gamemode
13 messages ยท Page 1 of 1 (latest)
Click here to see this code in our pastebin.
@sturdy sleet
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
how would i make it so i can ask the player if they want to switch the game
make another while loop and add another input for y/n, then call the game selection function if yes
thats what i figured but where do i put it
unrelated but for tictac toe, you could do like
for i in range(3):
if a[i] == b[i] == c[i] == "X", or someth to that effect, you can reduce the amount of lines by alot
after a game
like what do you mean
while Continue != "no" and Continue != "quit":
main()
Continue = input("Would you like to try again (Yes/No): ").lower()
so do i put this while loop inside it
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.