Slashdot Mirror


Reverse Engineering MineSweeper

hdm writes "The first edition of the Uninformed Journal introduces reverse engineering by ripping apart the MineSweeper game included with Windows XP. This paper covers the basics of the Windows Debugger and steps through the entire reverse engineering and cheat code development process."

17 of 60 comments (clear)

  1. But we already know the cheat by P-Nuts · · Score: 3, Informative

    It's a lot of effort to go to just to cheat at Minesweeper. I find it easier to type "xyzzy" followed by enter, shift+enter. Then look at the top-left pixel of your screen.

    1. Re:But we already know the cheat by DJDutcher · · Score: 2, Funny

      Yes it does work on WinXP Pro, I just tried it. Now how do I get ride of this colored pixel?!

    2. Re:But we already know the cheat by fvbommel · · Score: 2, Informative

      Hold your mouse over a square on the minesweeper field. Now look at the top left pixel of your screen. If it's white, the square doesn't contain a mine. If it's black, it does.

    3. Re:But we already know the cheat by clintp · · Score: 2, Insightful
      every once and a while, you get stuck and have to guess.
      Unless you're psychic you'll have to guess at least once in every game -- the first move.
      --
      Get off my lawn.
    4. Re:But we already know the cheat by MagicDude · · Score: 2, Interesting

      IIRC, the game is set so that the mines are distributed after you choose your first spot, ensuring that you never die on the first move. Makes sense, since in all the years I've played Minesweeper, I don't ever recall having hit a mine on the first try. Just to test this out, I made a custom game with a 10x10 grid and 81 mines (I tried 99 mines, but 81 seems to be the max for these dimensions). After about 20 games, I have yet to hit a mine on my first try.

    5. Re:But we already know the cheat by Anonymous Coward · · Score: 2, Insightful

      Well, I was semi-interested when I read the article, and at page 11, my jaws dropped:

      Time was spent to download and install the Symbols Packages, so let's see what hints they provide. Issue the following within the Command window get a list of all available symbols for WinMine.

      x WinMine!*


      The WinMine sybols are INCLUDED in the XP debug symbols !!!

      Of COURSE, it renders the reverse engineering task easier !

      Conclusion: crap article, as in most case, you will not have the symbols when you reverse engineer. The CodeProject article is much better.

  2. score by astrokid · · Score: 2, Funny

    Can't I just edit the winmine.ini file if I wanted the fastest/highest time/score?

    kidding :)

    --

    Chewie does not get a medal. Come on, George. Can a Wookie get a medal?
  3. Re:"Reverse Engineering Minsweeper" by AndroidCat · · Score: 4, Funny

    I'd prefer a game of MimeSweeper, but maybe that would work better as a FPS or god game.

    --
    One line blog. I hear that they're called Twitters now.
  4. This reminds me... by orkysoft · · Score: 4, Funny

    Years ago, I worked somewhere, and a colleague had reverse-engineered Hearts (Windows 95), and created an executable that modified the Hearts executable to enable and disable a cheat, that allowed any card to be played, not just legal cards.

    In typical Microsoft fashion, the other players' clients (and the server) accepted the illegal cards without problems.

    That was kinda fun to use on unsuspecting colleagues during the break (though I used it just to make them go WTF? once or twice ;-)).

    --

    I suffer from attention surplus disorder.
    1. Re:This reminds me... by Ratbert42 · · Score: 4, Funny

      I once hacked up the resources for Minesweeper to swap the "4" and "5" bitmaps. A guy in my office was ready to report the bug to Microsoft before we all lost it. He refused to believe us until I showed him how I did it.

  5. Another take on hacking minesweeper by markh1967 · · Score: 3, Informative

    There's also a good article on hacking minesweeper here

    --
    Input error. Replace user and press any key to continue.
  6. Re:Building a MineSweeper player? by fvbommel · · Score: 2, Informative

    Minesweeper is NP-Complete, which is basically a haughty way of saying "it's probably very difficult, but if you can prove whether it is or not, there's a million bucks in it for you"

    [another interesting link on the subject]

  7. Re:Building a MineSweeper player? by Sparr0 · · Score: 3, Interesting

    That has nothing to do with difficulty, thats a purely luck-based setup. With most minesweeper boards there will come a point where you have to pick one of two equally probable positions for the remaining mines. One of them will be wrong and lose the game, the other will be right. In "easy" games that happens rarely. In "medium" it happens sometimes. In "hard" it happens often enough that the game SEEMS hard, but its really just you coming up against 50/50 odds one more time than your luck held out.

  8. Shift-enter FIRST then Enter. by EnronHaliburton2004 · · Score: 3, Informative

    Dude! You have the enter and shift+enter backwards. was getting really angry with you until I did some investigation.

    You type "XYZZY" then press shift-enter and Enter.

    Unless it's different on different versions of Windows.

    (WinXP SP2 here)

  9. Re:Building a MineSweeper player? by Teddy+Beartuzzi · · Score: 2, Insightful
    It's true that luck plays a part, but that's true of almost all solitaire games. Sometimes the tiles, cards, or bombs are stacked against you no matter what you do.

    Doesn't make it any less enjoyable, though. :) It's not totally luck though, good players will consistently get further than poorer players, because they can see the "I know two of these four are mines, and three of these five are mines, therefore this one cannot be a mine!" moments better. The players who know to use both mouse buttons simultaneously to clear areas do better as well.

    I find that many Minesweeper players think of it as a race against time, so I'm just pointing out it's enjoyable as a test of quantity as well. Start at full size, 100 mines, and work your way up.

  10. So reverse Engineering IS OK Now? by fluffy99 · · Score: 2, Insightful

    So if a MS employee was caught reverse engineering code, it's ok? I realize it's a stupid game, but it's against the EULA and potentially illegal as well. Damn hypocrites.

  11. Re:AOL was the same way by Anonymous Coward · · Score: 2, Interesting

    That's nothing compared to the old days when AOL charged a per minute fee. Turns out the only security on their service was client side. With a small program you could get AOL for free by causing the client to lie and claim you were in a free area such as account status. Even worse, the only thing preventing anyone from accessing the employee only areas such as the customer database was the fact the AOL client wouldn't let you use the keyword (similar to a domain name) normally used to access that area. All you had to do to get access to the entire customer database including all the credit card numbers was request access to that area directly with another program rather than use the AOL GUI. That's right, if you could send the right data yourself you could do anything on AOL that an employee could.