Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Clever Code
  4. Microsoft Tetris

Microsoft Tetris

Scheduled Pinned Locked Moved Clever Code
game-devhelp
4 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrbikejoc
    wrote on last edited by
    #1

    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.

    J L 2 Replies Last reply
    0
    • M mrbikejoc

      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.

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M mrbikejoc

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.

        M 1 Reply Last reply
        0
        • L Lost User

          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.

          M Offline
          M Offline
          mrbikejoc
          wrote on last edited by
          #4

          I used Windows 3 until about 13 years ago. I still have that Tetris game, my best score is -16,973

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups