Ball under cup game


















Login Sign Up Free. Brain Games. Login Sign Up. Trickycups Game. Embed this code :. Trickycups » ProProfs Games. Featured Family Fun Games Sudoku. Crazy Taxi. Mahjongg II. Pool Practice. More or Less. Ghost Man Advanced. Word Scramble II. Rubic cube. View All. Pattern Memory. Math Lines. Quick Calculate. Memory Game. Disc Battle. Math Man. Active Oldest Votes.

What is your question exactly? Regarding random. Jonathan Clede Jonathan Clede 1 1 silver badge 5 5 bronze badges. Thanks a lot. Will try this along with the answer below when I have time later today. Let's clean up the loop structures a bit: When you need input, set up a while loop that continues until you get it. When you want to keep playing the game, do it in a loop as long as the player enters some form of "yes".

Recursion puts bad karma on the run-time stack. Simplify the input checking. Prune Prune Holy cow I totally forgot about while loops. Thanks for the clear and concise answer! Have a busy day but will get cracking at this later. Remember to "accept" one of the answers once you've had time to evaluate them all; this properly resolves the question in the SO data base.

I cannot get this to run at all. It just loops the first two print lines forever.. Then you've entered something improperly: the third line prints a prompt and waits for input.

Also, I'm about to update the code to be a self-contained example, and fixed a couple of edge problems. I still cannot get it to run as you've typed it, but edited my question at the top to show code that does work for me. That part doesn't do what it's supposed to for me. Show 10 more comments. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.



0コメント

  • 1000 / 1000