- 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