Hello there! So I've recently made a pick up stick game and Im pretty lost. The code keeps going past 0 and I'm not sure how to stop it.. Im also trying to say that whoever gets the last stick wins, but I am not sure how to go about that.
You didn't change the value of winner so it keeps looping :+)
Also, you probably want some braces around lines 24 to 26 and 43 to 45, but then consider what happens if that condition is not true. You may need to reorganise things a bit to get the logic right - you haven't specified what happens when remainder is less than zero, or equal to zero for that matter.
Thanks! Got some of those fixed. Reason why I didn't put what happens when remainder is 0 was cause Im pretty stumped on how to indicate which player won :c