This project builds upon the foundation of several Rush Royale bot implementations:
- Original Project: AxelBjork/Rush-Royale-Bot - The pioneering work that started it all
- Fixed Version: mleem97/Rush-Royale-Bot - Improved stability and bug fixes
- AI Redesign: Frikadellental/Rush-Royale-AI - Complete redesign with modern AI approaches
This repository represents the next evolution, focusing on advanced reinforcement learning techniques and autonomous gameplay.
- Computer Vision Integration: Advanced OpenCV-based image recognition for game state analysis
- Android Device Control: Direct communication with Android devices via ADB
- Machine Learning Analytics: Scikit-learn powered pattern recognition and decision making
- Real-time Screenshot Processing: Fast image capture and analysis pipeline
- Data-Driven Insights: Comprehensive gameplay analytics and performance tracking
- Cross-Platform Compatibility: Works with Android emulators (physical devices are not tested yet)
- Development Tools: Jupyter notebook integration for analysis and debugging
- OpenCV Integration: Advanced image processing for game state recognition
- Template Matching: Precise identification of game elements and UI components
- Color Analysis: Strategic decision making based on visual game information
- Screenshot Processing: Optimized real-time image capture and analysis
- Scikit-learn Models: Pattern recognition for optimal gameplay strategies
- Data Analytics: Performance tracking and strategic improvement recommendations
- Feature Extraction: Automated identification of key game state indicators
- ADB Integration: Direct Android device control and automation
- Cross-Platform Support: Compatible with emulators and physical devices
- Reliable Input Simulation: Precise touch and gesture automation
- Python 3.13+
- OpenCV 4.10+
- NumPy 1.24+
- Pandas 2.0+
- Scikit-learn 1.5+
- Pure Python ADB
- Pillow 10.0+
- Matplotlib 3.7+
- Clone the repository:
git clone https://github.com/yourusername/rushbot.git
cd rushbot- Create a virtual environment:
python -m venv rushbot_env
source rushbot_env/bin/activate # On Windows: rushbot_env\Scripts\activate- Install dependencies:
pip install -r requirements.txtpython main.py --mode train --device emulator-5554python main.py --mode play --device python analyze.py --log-file gameplay_data.jsonThe bot tracks various performance indicators:
- Win rate progression over time
- Average game completion time
- Decision accuracy and response time
- Screenshot processing efficiency
- ADB command success rates
- Pattern recognition confidence scores
Customize bot behavior through config.ini:
[DEVICE]
device_id = emulator-5554
screenshot_method = adb
resolution = 1920x1080
[GAMEPLAY]
action_delay = 0.5
confidence_threshold = 0.8
max_game_duration = 300
[ANALYSIS]
save_screenshots = true
log_level = INFO
data_retention_days = 30The bot development includes:
- Setup Phase: Device connection and screenshot capture implementation
- Vision Development: Template matching and game state recognition
- Automation: Touch input simulation and game interaction
- Analytics Integration: Performance tracking and data analysis
- Optimization: Speed improvements and reliability enhancements
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This bot is created for educational and research purposes. Please ensure compliance with Rush Royale's Terms of Service when using automated tools.
- AxelBjork for the original Rush Royale bot implementation
- mleem97 for improving and fixing the original codebase
- Frikadellental for the AI-focused redesign and modern approach
- Rush Royale developers for creating an engaging strategic game
- OpenAI and DeepMind for pioneering reinforcement learning techniques
- The open-source community for providing essential ML libraries
