Sep-20-2020, 08:02 PM
(This post was last modified: Sep-20-2020, 08:03 PM by Gribouillis.)
I think you need to describe a complete scenario of interaction between a player and the program, for example
Then you only need to write a function that performs all these steps and call it at the end of the program.
- 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.