Play Google's T-rex game using Deep Q-Learning.
- tensorflow >= 1.9.0
- tefla
git clone https://github.com/n3011/rexai.git
cd rexai
pip install -r requirements.txt
export PYTHONPATH=.
A simple webserver is required to run the T-rex javascript game.
$ cd rextf/game
$ python2 -m SimpleHTTPServer <port>
The game is now accessable on your localhost 127.0.0.1:port
.
python main_loop.py --logdir /path/to/logir
Open your browswer and press F5
to start the game.
The game environment and some parts of the code are inspired from https://github.com/vdutor/TF-rex.