Re: Group Project: Minesweeper solver, Pt. 1
- From: "Matt Williamson" <ih8spam@xxxxxxxxxxx>
- Date: Thu, 24 Apr 2008 11:18:37 -0400
"Kevin Provance" <casey@xxxxxxxxxxx> wrote in message
news:OtuyuIQpIHA.3568@xxxxxxxxxxxxxxxxxxxxxxx
Figured I'd give this a new thread.
What I've start tonight is a simple program that will read the open
Minesweeper program and recreate the state of them game on a VB form.
Since
Minesweeper has no objects that create it's interface, everything has to
be
read and interprited by using GetPixel.
Please be sure to read the notes in the general decs section.
Since the amount of cells in Minesdweeper can be changed by the user, and
since those settings are not saved in the registry until the program
closes...the infomation there becomes moot. So I had to compensate for
ways
to determine the number of available cells with yet again, GetPixel.
The code is fairly well commented
You can get it here: http://www.vb6andvista.org/download/deminsweep.zip
Enjoy, and please feel free to respond with anything. I should warn you I
still use a lot of old school naming conventions and methods. Feel free
to
update the methods as you like, but please, don't mess with my naming
conventions too badly. I use Hungarian Notation, but I despise
underscores,
as you will see. Oh, and start Minesweeper on your own. I didn't mess
with
any Shell implimentation yet.
One challange I did not address is the fact that minesweeper can be played
in black and white (why? I have no clue). Your running copy of
minesweeper
needs to be in colour for any of this to work properly. It's something
that
can be addressed later.
Thanks for the opportunity Bob.
- Kev
So, when we make any changes, how are we going to post them?
I got tired of launching minesweeper everytime prior to running the code, so
I added code to launch minesweeper if it wasn't running and get the hwnd
from the PID from shell.
.
- Follow-Ups:
- Re: Group Project: Minesweeper solver, Pt. 1
- From: Matt Williamson
- Re: Group Project: Minesweeper solver, Pt. 1
- References:
- Group Project: Minesweeper solver, Pt. 1
- From: Kevin Provance
- Group Project: Minesweeper solver, Pt. 1
- Prev by Date: Case keeps changing
- Next by Date: Re: How to omit blank spaces in the text?
- Previous by thread: Re: Group Project: Minesweeper solver, Pt. 1
- Next by thread: Re: Group Project: Minesweeper solver, Pt. 1
- Index(es):
Relevant Pages
|