Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help for guessing game code
#3
(Mar-09-2020, 12:59 PM)snippsat Wrote: Yes this part can be hard to figure out,as goto is not a good idea

The way to solve is using loop structure and can also use function to separate it,so it get cleaner than trying to all in one loop(how do i start at begging again )
Here is a demo skeleton of one way to do this,so have one menu that start the game and can quit out.
Always fall back into this menu,where can start new game or quit.
Thanks for suggesting. Can you please explain the code so i can do it myself too. Thank you very much
Reply


Messages In This Thread
Help for guessing game code - by Kronos - Mar-09-2020, 11:39 AM
RE: Help for guessing game code - by snippsat - Mar-09-2020, 12:59 PM
RE: Help for guessing game code - by Kronos - Mar-09-2020, 01:24 PM
RE: Help for guessing game code - by snippsat - Mar-09-2020, 01:50 PM
RE: Help for guessing game code - by Kronos - Mar-09-2020, 03:46 PM
RE: Help for guessing game code - by snippsat - Mar-09-2020, 04:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  needing some help to write some code for a game calculator rymdaksel 2 1,754 Mar-08-2025, 03:02 AM
Last Post: bevisandrew
  word guessing game, hints STUdevil 1 1,964 Oct-12-2024, 01:53 AM
Last Post: menator01
  Problem with my pong game code Than999 8 6,208 May-15-2022, 06:40 AM
Last Post: deanhystad
Question Beginner Boolean question [Guessing game] TKB 4 4,673 Mar-22-2022, 05:34 PM
Last Post: deanhystad
  Unable to count the number of tries in guessing game. Frankduc 7 3,336 Mar-20-2022, 08:16 PM
Last Post: menator01
  Music Selection Game Code WyattH 3 3,355 Jul-20-2020, 11:16 AM
Last Post: ndc85430
  Guessing game problem IcodeUser8 7 5,809 Jul-19-2020, 07:37 PM
Last Post: IcodeUser8
  Beginner Code, how to print something after a number of turns (guessing game) QTPi 4 3,967 Jun-18-2020, 04:59 PM
Last Post: QTPi
  Python Help - Guessing Game JamieT 5 4,416 Apr-16-2020, 01:30 PM
Last Post: deanhystad
  Guessing game kramon19 1 2,790 Mar-25-2020, 04:17 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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