Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
restarting game code
#3
actually the game just close and i cant stop that

(Sep-03-2019, 06:20 PM)ichabod801 Wrote: Can you show us what you did for the restart function/method? If you just want to reset the scores, what you need is right there at the start of play game.

And please use Python tags instead of output tags.
i try this but didnt work
def win (
        q = input("do you want to play again ? yes or no ?")
        if q == "yes"
         play_game()
Reply


Messages In This Thread
restarting game code - by zyada7med - Sep-03-2019, 06:07 PM
RE: restarting game code - by ichabod801 - Sep-03-2019, 06:20 PM
RE: restarting game code - by zyada7med - Sep-03-2019, 06:47 PM
RE: restarting game code - by ichabod801 - Sep-03-2019, 07:51 PM
RE: restarting game code - by zyada7med - Sep-03-2019, 08:49 PM
RE: restarting game code - by ichabod801 - Sep-03-2019, 09:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Asking for help in my code for a "Guess the number" game. Domz 5 3,844 Aug-14-2019, 12:35 PM
Last Post: perfringo
  Code: Creating a basic python game? searching1 5 3,485 Nov-12-2018, 05:18 AM
Last Post: searching1
  Hangman-Game (German code) .. Unkreatief 1 3,739 Mar-22-2017, 10:30 AM
Last Post: Kebap

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020