Microsoft Tetris
-
The Tetris game that shipped with Windows 3, etc. has a bug in how displays and stores a score. Scores are of data type INTEGER meaning a score of 32,768 is actually displayed and saved as -1, 32,769 as -2 and so on.
I am not quite sure if I would classify that as a bug, as it does not effect the operation of the program. I do agree though that they should have considered the possibility that the value could be higher than what they allowed for and made provision for that. Data type may be ‘short’, which is the same as ‘int’ when using 16-bit code compilers.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
-
The Tetris game that shipped with Windows 3, etc. has a bug in how displays and stores a score. Scores are of data type INTEGER meaning a score of 32,768 is actually displayed and saved as -1, 32,769 as -2 and so on.
-
Ok! But, I ask, why are you working with Windows 3?
No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced.