Dart simulator

I want make to make a program that takes input from a user, asking how many players should play Dart.
Every player throws 5 arrows every round. Each throw is supposed to score between 1 and 50 points, using random.randrange(). The player should throw every arrow, before the next player can play.
Then the program should print the result of the simulation.

How can I do this? If anyone can help me in the right direction, it would be much appreciated.

How about a for loop?

If you save the users input to a variable, you could make a for loop that runs once for each player.

This may require the user to input a value that can be translated to an integer, so you would have to make sure a valid answer is given.

Thank you!:slight_smile:

1 Like