Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Horse race game
#2
I think you need to describe a complete scenario of interaction between a player and the program, for example
  • The user starts the program
  • The program displays a welcome message and asks for the player's bet for the next race
  • The player types their bet and hit the return key
  • The program "parses" the player's input and interpretes it as a sequence of horses numbers
  • The program fills the list tableau_pari with the player's bet
  • The program simulates the race and stores the result in a list tabjeu
  • The program finds the result of the bet by calling ordre() and comparaison()
  • The program prints the result of the bet and exits

Then you only need to write a function that performs all these steps and call it at the end of the program.
Reply


Messages In This Thread
Horse race game - by Moreal - Sep-20-2020, 06:56 PM
RE: Horse race game - by Gribouillis - Sep-20-2020, 08:02 PM

Forum Jump:

User Panel Messages

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