Closed TankTheTortoise closed 1 month ago
The game class needs a function to play the turn of a player. It can be represented by
# __next makes you able to iterate through the game in a for loop def \next__(): self.turn+=1 player = self.player[turn%len(self.players)]
Whoever wants to help with Monopoly should try to add this functionality. You can also write the function in a different way if you want.
Can we consider this closed? The while loop at the bottom seems like the best way to have the turns
Yep. I forgot that I opened this issue.
The game class needs a function to play the turn of a player. It can be represented by
# __next makes you able to iterate through the game in a for loop def \next__(): self.turn+=1 player = self.player[turn%len(self.players)]
Do stuff to the player
Whoever wants to help with Monopoly should try to add this functionality.
You can also write the function in a different way if you want.