by Torero » Sun Apr 15, 2007 5:24 am
Get The Board Tiles
View the 0x01005334 address in the Hex Editor again.
The board height was right there, and the chances are good that the board array (the tiles on the playing field) are there too.
As mentioned, the Hex Editor will highlight bytes that change, so use this to our advantage.
Go to Minesweeper, Game/New (or press the smiley face).
This makes a new game with a new board array. If anything changed in our Hex Editor, it will be related to this change in our game.
Looking back at the Hex Editor shows that indeed several bytes have changed just below 0x01005334.
Guess what. We just found the board array already.
Further investigation reveals that it starts on 0x01005361.
Decode The Mine Array
This is quite simple and doesn’t even need its own section.
After playing with things a bit, you will find that mines have the highest bit set (they appear as values 0x80 and above in the Hex Editor).
In other words, if ([Square] & 0x80) returns non-zero, there is a mine there, and we don’t want to click it
how does the board array look like, and how did you recognize it amongst all of these crazy numbers ?