Re: Group Project: Minesweeper solver, Pt. 1

Tech-Archive recommends: Fix windows errors by optimizing your registry




"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.


.



Relevant Pages

  • Re: Group Project: Minesweeper solver, Pt. 1
    ... |> Minesweeper program and recreate the state of them game on a VB form. ... |> to determine the number of available cells with yet again, ... |> still use a lot of old school naming conventions and methods. ... I didn't mess ...
    (microsoft.public.vb.general.discussion)
  • Re: Group Project: Minesweeper solver, Pt. 1
    ... |> Minesweeper program and recreate the state of them game on a VB form. ... |> to determine the number of available cells with yet again, ... |> still use a lot of old school naming conventions and methods. ... |> update the methods as you like, but please, don't mess with my naming ...
    (microsoft.public.vb.general.discussion)
  • Group Project: Minesweeper solver, Pt. 1
    ... Minesweeper program and recreate the state of them game on a VB form. ... to determine the number of available cells with yet again, ... still use a lot of old school naming conventions and methods. ... update the methods as you like, but please, don't mess with my naming ...
    (microsoft.public.vb.general.discussion)
  • Re: Group Project: Minesweeper solver, Pt. 1
    ... |>> Minesweeper program and recreate the state of them game on a VB form. ... |> I got tired of launching minesweeper everytime prior to running the ... | email me with it so I can add you as a project owner. ... | owners can make the changes/updates or add new owners. ...
    (microsoft.public.vb.general.discussion)
  • Re: Group Project: Minesweeper solver, Pt. 1
    ... Minesweeper program and recreate the state of them game on a VB form. ... I got tired of launching minesweeper everytime prior to running the code, ... email me with it so I can add you as a project owner. ... owners can make the changes/updates or add new owners. ...
    (microsoft.public.vb.general.discussion)