Game Bot is an artificial intelligence that learns to play any game by watching your actions. It records your keyboard and mouse movements while you play, then trains a deep learning model to mimic your gameplay.
- Records your keyboard and mouse actions while you play any game
- Trains a neural network to learn your play style
- Lets the AI play the game for you using the trained model
- Record Gameplay: Run the dataset creation script and play your game. The program will record your actions and screenshots.
- Train the Model: Use the training script to teach the AI how you play.
- Let the AI Play: Run the AI script to watch the bot play the game using your style.
- Make sure you have Python 3.10 installed (recommended for compatibility with TensorFlow and Keras).
- Install the required Python packages:
pip install -r requirements.txt
- Run the dataset creation script:
python create_dataset.py - Play your game. The program will record your actions.
- Stop the script with
Ctrl+Cwhen done.
Train the AI using your recorded data:
python train.py
Let the AI play the game:
python ai.py
To monitor training progress:
tensorboard --logdir=Data/Checkpoints/logs
- Tested with Python 3.10.0 and 3.6.0
- This project is still under development
- If you encounter errors about missing data, make sure you have run
create_dataset.pyand played your game to generate training data before training or running the AI. - If you see errors about missing modules, ensure you are using Python 3.10 and have installed all requirements.
- Download and install Python 3.10.0: https://www.python.org/downloads/release/python-3100/
- Open Command Prompt and run:
pip install -r requirements.txt
Feel free to contribute or open issues. Enjoy teaching your AI to play games!