This project is an automation bot built with:
- Python
- OpenCV
- ADB (Android Debug Bridge)
It automatically detects the game board and performs swipe actions to attack enemies.
-
🎮 Real-time image recognition
-
🤖 Automatic attack execution
-
🔄 Dual-mode support:
preview(practice mode)run(co-op mode)
-
🧠 Noise reduction with voting mechanism
-
💾 Persistent settings via configuration file
-
🖥️ GUI control panel
-
OS: Windows
-
Emulator: BlueStacks
-
Python: 3.x
-
ADB path example:
C:\platform-tools\adb.exe
This project requires BlueStacks + ADB + Python environment setup before running.
-
Download from the official website: 👉 https://www.bluestacks.com/
-
Install and launch BlueStacks
-
Make sure your game can run properly
Inside BlueStacks:
Settings
→ Advanced
→ Enable Android Debug Bridge (ADB)
✅ This must be enabled for Python to control the emulator
Open Command Prompt and run:
adb devicesYou should see:
List of devices attached
127.0.0.1:5555 device
👉 This means:
ADB_SERIAL = "127.0.0.1:5555"
Connect manually:
adb connect 127.0.0.1:5555Then run again:
adb devicesADB is an executable file (adb.exe)
C:\platform-tools\adb.exe
👉 So your config should be:
ADB_PATH = r"C:\platform-tools\adb.exe"Download Android Platform Tools:
👉 https://developer.android.com/tools/releases/platform-tools
Extract and use directly
pip install opencv-python numpy mss pygetwindowadb devices✅ Expected output:
127.0.0.1:5555 device
python main.py👉 Fix:
adb connect 127.0.0.1:5555👉 Fix:
adb -s 127.0.0.1:5555 devicesOr set in code:
ADB_SERIAL = "127.0.0.1:5555"'python' is not recognized...
'pip' is not recognized...