AbingtonHeightsSoftwareClub / Monopoly

Monopoly
0 stars 6 forks source link

Turns #8

Closed TankTheTortoise closed 1 month ago

TankTheTortoise commented 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)]

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.

JackChuck1 commented 1 month ago

Can we consider this closed? The while loop at the bottom seems like the best way to have the turns

TankTheTortoise commented 1 month ago

Yep. I forgot that I opened this issue.