automate minesweeper with python

MRAB python at mrabarnett.plus.com
Wed Jun 30 21:38:26 EDT 2010


Jay wrote:
> On Jun 30, 6:01 pm, Justin Ezequiel <justin.mailingli... at gmail.com>
> wrote:
>> On Jul 1, 7:39 am, Jay <jayk... at yahoo.com> wrote:
>>
>>> I would like to create a python script that plays the Windows game
>>> minesweeper.
>>> The python code logic and running minesweeper are not problems.
>>> However, "seeing" the 1-8 in the minesweeper map and clicking on
>>> squares is. I have no idea how to proceed.
>> you may want to have a look at sikulihttp://groups.csail.mit.edu/uid/sikuli/
> 
> Intresting, but I actually have something already in python I want to
> modify.

There's a question here about capturing a window as an image:

   http://bytes.com/topic/python/answers/500826-screen-capturing-windows

You could then see if you could identify the squares.



More information about the Python-list mailing list