I made a Game that only goes halfway then stops, but the code is correct, can someone refine my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I made a Game that only goes halfway then stops, but the code is correct, can someone refine my code

My game is a pick in between 2 dungeons, one dungeon has a dragon that gives you treasure, and the other has a dragon that eats you. the code is correct but it stop mid way after input😕 here it ishttps://code.sololearn.com/cld2hVgGs44P/?ref=app

13th Jun 2018, 4:10 AM
London
London - avatar
8 Answers
+ 6
Remove the loops for input. They won't work properly on Code Playground.
13th Jun 2018, 4:44 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
Code Playground is an online IDE which has to receive all input from the user prior to code interpretation. It doesn't provide a live console, and hence loops don't work well with user input in them.
13th Jun 2018, 6:28 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Somebody could, but you will need to post a link to your code mate. Cheers.
13th Jun 2018, 4:11 AM
Tony
Tony - avatar
+ 1
What do you mean exactly? Hatsy Rei
13th Jun 2018, 6:27 AM
London
London - avatar
0
it is on my Account
13th Jun 2018, 4:12 AM
London
London - avatar
0
oh ok yeah
13th Jun 2018, 6:28 AM
London
London - avatar
0
so does that mean I need to use a different interpreter or something
13th Jun 2018, 6:33 AM
London
London - avatar