a little script that plays minesweeper all by itself.
i wrote this quite a while ago, shortly after i found autohotkey, so please forgive the obvious clumsiness in some places. i didn't really know how everything worked back then, and i didn't put more than an evening or two into it either.
it was a little difficult to determine where the mine area begins, because of all the different windows styles and font sizes and i'm not sure it will work with every theme, but i tested it under windows 2k default and windows xp classic and xp themes. also, since it uses the colors of the numbers to determine what they are, it might not work with every color depth. i tested with 16 and 32 bit and it seemed to work. the "program name" field is included for all the non-english-version windows users who might need to change the name.
since it is sometimes impossible to determine the position of mines, there is an option to have to script guess. especially once the chance of a mine goes above 20% (like on expert) this becomes quite frequent.
well, anyway, i hope you like it. it sure improved all my best times. 8)
...but if you did look at it, you would see, that parts are redundant, because i was too lazy to write some additional clauses and put them in iterations.
Nineteen hundred lines of code :shock: :shock: :shock:
I did not dare to read the code as it would trigger a migraine aura. :wink:
Just wanted to thank the author for writing autosweeper. I used it for one of my productions online here:
I apologize for the URL That was all my left hand could type at the time.
Btw this was made using a modified version of the autosweeper script which simply takes a screenshot every time a mouseclick is registered.
At Profi-Level it was busted at the last mine (after 66 seconds)
So, know it finished after 65 seconds
I think I'll try it also on my faster Tower (e6600 CPU)
I have written a little script that changes point-calculation (patching it in memory), but you would have to play by yourself *g*
Now we got to do Automatic Solitare 8)