- Didn't commit the code to not harm the gameplay of others.
- Feel free to reach me here if you are interested
- Curiosity-driven work (Atm the goal isn't to build a real solid software)
Demo on Youtube π
A program who will play for you when you cannot play at The Ants: Underground Kingdom
- β Farm resources by attacking world monsters
- βοΈ Resource gathering
- βοΈ Provide Allance Help
- βοΈ Claim Alliance Gifts
- βοΈ Upgrade buildings of your AntHill
- MacOS Monterey
- Dart: All the codebase
- BlueStacks: Android device emulation on my Mac
- CliClick: Simulate user taps
- MacOS Screencapture CLI: Screenshot emulator
- Tesseract: Text recognition (OCR) on Screencaptures (from emulator)
- ImageMagick: Image cropping + Image preprocessing for Tesseract
β π‘ Split this date in multiple cropped images + OCR them 1 by 1
details here
When scanning this:Tesseract can return:
460 Dye 220/1,540 @ 84/100 &, 4.0K
460 Dye 220/1,540 @ PAPAL!) &, 4.0K
even worse cases...
β π‘ Find better values for thoses crop zones
details here
See those 2 cases with different stamina:OCR Result: 100/100
OCR Result: PAPAL!)
π€―
I hardcoded the crop zone value when stamina was 100/100. When Stamina drops to 93/100, crop zone is bad (because it contains part of the insect image). OCR This produces noise and a bad OCR result like
β π‘
details here
Farm resources by attacking monsters as much a possible.
- You wake up with a lot resources :)
- Provides XP for your special Ants
- β Computes which resource you need the most before attacking a monter
- β Use all March Units available (only the first two are used at the moment)
- βοΈ Automatically refills your March Units with available soldier ants
You build your March Units before launching the bot