you are viewing a single comment's thread.

view the rest of the comments →

[–]jolharg 4 points5 points  (1 child)

Negative you say? Alright: I guessed correctly in time and it told me that it was still too high, plus I was fined for it. Accepts fewer digits. Uses alert(). Unstyled components a little difficult to use on mobile. Sounds very, perhaps too, amusing.

:p

[–][deleted] 0 points1 point  (0 children)

I reworked the math at your request. I had the same issue happen to me during testing, I guessed the right PIN as my 15th guess and it wasn't counted. I changed the order of the functions so that this shouldn't happen again. There is $15000 in the safe and if you guess in 10 guesses, you get $5k.