If you have already trained the artificial intelligence model, follow these steps to play your desired game:
-
Open the game.
-
Run the following command in the terminal:
python3 ai.py
To create a dataset for training the AI model, follow these steps:
- Run the dataset creation script:
python3 create_dataset.py
- Play your desired game while the script is running.
- Stop the dataset creation process by pressing Ctrl + C in the terminal.
To train the AI model, use the following command:
python3 train.pyTo monitor the training progress with TensorBoard, execute:
tensorboard --logdir=Data/Checkpoints/logs- This implementation has been tested with Python version 3.11.0.
- Install the required dependencies using:
You can understand the code by reading the comments of the code written inside the code
sudo pip3 install -r requirements.txt