Hello! I'm currently a beginner to C++ programming and have ran into my first stump with a program, specifically with Chutes and Ladders. I'm completely clueless on how to approach the coding after asking for the 2 players' names. Logically, I should be prompting the user to "spin" the spinner, which I do by calling the function 'spinner'. But what I'm a bit stuck on is how to put that in a 'while' loop for each of the players' turn. Additionally, I'm also not sure how to go back and forth for each players' turn. Would I need to create a variable for each turn that are respective to the 2 players? Anyway, the code is obviously not complete but I've tried to program what I could. I'd appreciate any tips and suggestions. And also, arrays are not allowed. Thank you!
You could have a bool that's true when it's player one's turn and false otherwise. Your game int should probably be a bool too, although what you have works.
@pogrady
It's true that you only need to call srand() once, but why should you only call it once? It does no harm multiple times.