Well, I'm still learning the tutorials and I just have a question. I kind of get the other examples, but this one I'm not understanding. I like to explain everything in the code using comments so that I can know what each part does. But I just don't really understand this.
Like I don't understand the player = 1 part, the someone_has_won, the player++, and basically everything about it. Like my other thread, please explain it to me like I'm five.Code:for (player = 1; someone_has_won == FALSE; player++) { if (player > total_number_of_players) {player = 1;} if (is_bankrupt(player)) {continue;} take_turn(player); }
Thanks.



1Likes
LinkBack URL
About LinkBacks


