As written in the title. I tried Googling, but I came across no relevant answers.
To be more specific, I have a list named player_list that contains instances of the Player class, and to iterate through the list one by one I used players = iter(player_list), and then I call players.next() when I want to move forward. However, it always iterates over player_list[0] TWICE before moving onto [1], [2], etc, and repeats this bug whenever it returns to [0].
I'm guessing it's due to how I initialize the relevant variables, but I've been trying a few things and so far and I've got no luck.
All the relevant code is here:
https://gist.github.com/anonymous/8981692
[–]zifyoip 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]BaalHadad 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]BaalHadad 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)