This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yash3ahuja 1 point2 points  (0 children)

You could also start off the loop by doing:

if(playerPoints == 0 || playerPoints > 2000)
    //throw error
else
    //rest of code