hello
a little script that plays minesweeper all by itself.
autosweeper.ahk
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)
Automatic Minesweeper
Started by
bhao
, Aug 09 2006 02:03 PM
25 replies to this topic
#1
-
Posted 09 August 2006 - 02:03 PM
Now we got to do Automatic Solitare 8)
#5
-
Posted 09 August 2006 - 06:35 PM
//TODO: Create kewl sig...
bhao!
Nineteen hundred lines of code :shock: :shock: :shock:
I did not dare to read the code as it would trigger a migraine aura. :wink:
It works for me.. and is amazing! Less than 3 seconds in Win 2000 default.
Nice work!
Regards,
Nineteen hundred lines of code :shock: :shock: :shock:
I did not dare to read the code as it would trigger a migraine aura. :wink:
It works for me.. and is amazing! Less than 3 seconds in Win 2000 default.
Nice work!
Regards,
#6
-
Posted 09 August 2006 - 07:56 PM
...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:
#7
-
Posted 11 August 2006 - 12:34 PM
awesome script... in XP you can turn off color though... that screws it up BAD.
But doh.
But doh.
#8
-
Posted 12 August 2006 - 03:59 AM
Funny, I knew such programs existed, and recently I just wondered if anybody has ever written such a program in AHK... Well, now I know! :-)
#10
-
Posted 16 August 2006 - 12:34 PM
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Hey,
Just wanted to thank the author for writing autosweeper. I used it for one of my productions online here:
http://alskjdflaksjfd.ytmnd.com/
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.
thanks
AL
Just wanted to thank the author for writing autosweeper. I used it for one of my productions online here:
http://alskjdflaksjfd.ytmnd.com/
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.
thanks
AL
#13
-
Posted 18 September 2006 - 05:49 PM
Very nice script!
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)
Thalon
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)
Thalon
#14
-
Posted 18 September 2006 - 06:05 PM