12-17-2014, 05:52 PM
I've just updated the code with some minor improvement, currently ocr still relies on Tesseract as I haven't figured out the other method, but accuracy should be decent enough. Right now there's no image recognition so on first run it'll prompt you to manually click on each barrack to record positions. From then it can run on its own (train troop, wait, find opponents, attack, return home, repeat,...). However I cannot guarantee that it's stable enough to run continuously (a lot of error check I haven't implemented, just test run a few time) so just try it out a few times for fun (I lost so many trophies and elixir testing it lol). If anything go wrong just close it, I manage to get the GUI to response while inside the loop but Stop button's still a bit buggy.
http://www50.zippyshare.com/v/8211364/file.html
Unrar Bot.rar and run Bot.exe inside folder or compile from source code (must be run from same folder)
Source: http://pastebin.com/Rv4hGhNb
http://www50.zippyshare.com/v/8211364/file.html
Unrar Bot.rar and run Bot.exe inside folder or compile from source code (must be run from same folder)
Source: http://pastebin.com/Rv4hGhNb