Alternating Players

I’m working on a project for a class and I cant get the players to alternate correctly. I need to alternate between player one and player two for turns in a program I’m writing that is supposed to be a game. I have most of the parameters of the assignment figured out except for this. I have tried using mod to differentiate between odd and even but that is still causing random repeating. Here is the code:

A player can play for multiple turns before they hold so you should not use turn % 2 to determine who’s playing.

Also, PlayerOne and PlayerTwo are both initialized as 0 so there’s no way to tell between the two, although they’re likely assigned with different values in your actual code since you say you’re getting a randomly repeating behavior.

Lastly, in the future please post code as formatted text rather than an image.