by anticorporate · 2y ago · 0 comments
Since this version was made for 16-bit Windows, it was no surprise that they used a 16-bit integer to store your score. What was surprising is that they used a signed 16-bit integer, meaning that after you passed 32,767 points, your score would roll over into the negative.
Teenage me was so good, I'd consider it a disappointment if my score didn't turn negative in every round I played.
Of course, I'd have to dig up my old computer from a landfill to try and prove it, so I just have to live out the rest of my days knowing that I'm an unrecognized world record holder.
Being super competitive, in order not to lose to me, he became a fiend at minesweeper, being able to do solve the beginner series in under 20 seconds. As he would get better and better, I would continue to beat his high score until he had the beginner down to somewhere around 7 seconds.
I changed it to 6 seconds.
He beat it to 5 seconds.
I changed it to 4 seconds.
At that point he was like, WHAT IS GOING ON? And then I showed him how I could just edit the scores. Boy was he dissapointed. But it goes to show how far we can push ourselves if we know that it's "possible."
Indeed, I consider it a disappointment when I don't succeed to turn the score negative. When I'm in the right state of mind, and have enough time, and a bit of luck maybe, I can go from positive to negative to positive back to negative multiple times; I've never kept count, but I know of some instances where I've played a single game for over 45 minutes at least.
I might give the dosbox + windows 3.1 option a try though, thanks for the suggestion.
Anyway, I think that it's not really surprising that they'd use a signed integer in either case. In every codebase I've ever worked on, signed ints are the default merely because they're the obvious choice for a number. I only see uints when it actually matters, or when a developer is overly pedantic.