In this segment of code Alex explains it's purpose:- "This way, if one player can't take her turn, the game doesn't stop for everybody; we just skip her and keep going with the next player's turn. "
I see this is implemented is lines 5 and 6, but what I don't understand exactly is what line 3 and 4 does.. mostly the conditional statement on line 3.
HAAAAALP please. Thank you.
Code:
1 for (player = 1; someone_has_won == FALSE; player++)
2 {
3 if (player > total_number_of_players)
4 {player = 1;}
5 if (is_bankrupt(player))
6 {continue;}
7 take_turn(player);
8 }