minesweeper

How can I find the data structure that represents mine layout of Minesweeper in memory?

I'm trying to learn about reverse engineering, using Minesweeper as a sample application. I've found this MSDN article on a simple WinDbg command that reveals all the mines but it is old, is not explained in any detail and really isn't what I'm looking for. I have IDA Pro disassembler and the WinDbg debugger and I've loaded winmine.exe...

Minesweeper algorithm

Hey, I am pretty sure most of you know about the minesweeper game. I wanted to code (in C#) my own minesweeper game and was looking for some input as to what would be a good algorithm for that game. I have been browsing over the web for quite some time now but could not find a good solution. Can anyone help me with it? Thanks ...

NullPointer Exception when calling method from a difference class

JAVA- Hi, I am writing a minesweeper program (first biggie) and am really stuck. The program itself is comprised of 2 classes (one for the logic, one for the GUI) as per the specifications that I am to follow. I have done a fair bit in both classes but am not finished either. However, I am attempting to test implementing call methods fro...

Message Dialog Box Reappears After OK button is clicked

Hi, After getting good help previously, I have completed my Minesweeper game. However, there is one problem that I can't figure out. The game itself works fine, however, I have an option for the user to change difficulty setting (beginner, intermediate, advanced) which is giving me grief. The user selects "Game" from the JMenuBar and the...

Creation 2D array for Mine game

Hello I am trying to create emulation of "Mine game" suppose we have matrix 0 0 0 0 0 0 -1 0 0 0 0 -1 0 -1 0 -1 now each cell that not equal -1 should be represent numbers of mines here code for(int i=0;i for(int j=0;j<N;j++) if(box[i][j]!=-1) { switch (i) { case 0: iLEFT=0; iRIGHT=1;b...

What's the algorithm behind minesweeper generation

Well I have been through many sites teaching on how to solve it, but was wondering how to create it. I am not interested much in the coding aspects of it, but wanted to know more on the algorithms behind it. For example, when the grid is generated with 10 mines or so, I would use any random function to distribute itself across the grid,...