I am running code and nothing is happening

Every time I try and run my tripplex game (not finished) the terminal is blank and nothing is shown, and then I have to ctrl+c to force break the code. the code is here:


Your program gets stuck in a while loop.
Remove the semi colon at the end of your while (leveldifficulty).

What it’s doing right now, is evaluating if leveldifficulty is non zero, and then executing the code that follows. Your semi colon indicates the end of that code. So basically the code executed in the while loop is nothing, so it keeps looping forever.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms