I've been trying to understand over the past hour why, when the die rolls a one, an infinite loop occurs. I cannot understand why this happens, because I broke the loop by returning a value when a one shows up.
The problem should be somewhere in the turn() function. Any help/suggestions pointing me in the right direction would be greatly appreciated!! It's my first time posting here so go easy on me! Thanks!!
In your turn() function, get rid of all return statements except for the last one. Also it's bad habits to have more than one return statement per function, unless you deem it absolutely necessary.
Getting rid of all the return statements expect the last one in your turn() function will fix a lot of your looping issues. on line 28, you don't need to set the bool value to false as it's already set to it. So you want to get rid of that. When the player enters the true statement is when it will break to the next loop for the second player to enter. Since you are starting out in programming, it is a good practice to start doing camel casing much as you can. As the underscore can represent other things when using it like, IE: Classes. So for int's you wanna do like this "myInt".
The program looks good. Another popular style to write your functions is proto-typing them. Makes it much easier to read your main and if there is an issue with a function we can look for it other than that most programmers will assume the function was written correctly and don't have to read through the function unless needed to.