Skip to content

AI bot that learns to play the offline dinosaur game in Chrome

Notifications You must be signed in to change notification settings

robianmcd/chrome-dino-ai

Repository files navigation

Chrome Dino AI

AI bot that learns to play the offline dinosaur game in Chrome.

Network Visualization

Install

pip install -r requirements.txt

On windows you can optionally install win32gui which will automatically focus the chrome window. Download the .whl file for your python version and architecture from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32 and install it with pip install pywin32‑224‑cp36‑cp36m‑win_amd64.whl

Run

  • open chrome dev tools and "undock in separate window"
  • Select the offline checkbox in the dev tools
  • try to go to a website and put chrome in full screen
    • If you installed win32gui then go to https://github.com. It will look for this in the window title if there are multiple chrome windows open.
  • run python dino_bot.py
  • click on the chrome window so the bot can send it keyboard input
  • wait a couple days
  • profit

Note: if you have multiple monitors, uncomment the "show image" code in src/dino_img_util.py to see which screen the bot is looking at. You can control which monitor it uses by setting monitor_id in dino_bot.py

References

TODOs / Experiments

About

AI bot that learns to play the offline dinosaur game in Chrome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages