News for hackers. Stuff that matters.
Re:Building a Bejeweled Bot by karpathy on Monday April 16, 2012 @06:09AM (#3846736)
I would recommend using AutoHotkey instead of AutoIt. I wrote some bots for fun for a few similar games but skipped Bejeweled in favor of (a simpler) alternative called Diamond Dash. The bot could hold its own but it couldn't beat some of my better friends. To squeeze out the extra performance one has to start doing much more complicated things. For example, the blocks in these games rarely appear in fixed coordinates but slide around, explode (and therefore partially occlude other tiles), etc. Recently, this has been turning into a bit of a cat and mouse game with game developers. For example, they started adding noise on top of sprites to throw off very simple methods.

But there is something very fun in developing scripts that moves your mouse around and play for you. I like that game much better :)

Re:Building a Bejeweled Bot by RC1140 on Monday April 16, 2012 @06:33AM (#3846785)
Thanks for the feedback , I will look into autohotkey but in the end autoit was just there to get me started, I want to look at a other languages just to see how it would be done differently.
Re:Building a Bejeweled Bot by patrickk on Monday April 16, 2012 @06:40AM (#3846806)
I looked into AHK for my roulette bot originally. AutoIt is quite similar to AHK but it can do more complex stuff. If you are just looking for basic GUI manipulation then AHK is your tool for the job.

http://stackoverflow.com/questions/1686975/choosing-a-window...