This Python script automates the gameplay of Hamster Kombat Hexa Puzzle using computer vision, color detection, and screen automation. The script detects game elements and moves pieces based on predefined logic. It uses threading and hotkeys to control the bot's operation, allowing you to start, stop, and quit the automation with ease.
Features: Detects game elements (coins and cells) using OpenCV and color recognition. Automatically moves coins to the best available positions based on game logic. Uses EasyOCR for detecting in-game text and triggering specific actions. Thread-based operation with customizable hotkeys for starting and stopping automation. Installation Guide Prerequisites: Ensure that Python 3.x is installed. Install pip, the Python package manager.
Here's a step-by-step guide for setting up the Python bot and Windows Subsystem for Android (WSA) to run your HexaPuzzleBot from GitHub:
Use hotkeys like Ctrl+A to start automation and Ctrl+S to stop.
Link for video: https://youtu.be/Ix51kGpS3hI
How to install Telegram for WSA:
Download https://www.microsoft.com/store/productId/9N4P75DXL6FG?ocid=pdpshare
Download any telegram APK
Open WSAtools
Press install APK
Open installed telegram
The bot detects colored coins using OpenCV and moves them using PyAutoGUI. Use EasyOCR to detect game text like "Claim" and "Play" for automated interaction. The script runs in a separate thread for efficient operation and allows hotkey-based interaction.