May-15-2019, 01:19 PM
This is how I handle it: I have a dictionary of player names to their scores, like
{'Bob': 23, 'Ichabod': 81, 'Buckaroo': 55}
. I also have a list of the players, and an index pointing to that list for the current player. Each time through the loop you update the index, and if it's equal to the length of the list you reset it to zero (really easy to do with the % operator). For a simple repeated loop through a player list, there are better options, but they involve the itertools package, which is probably beyond the scope of your homework.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures