A naive python bot that plays Google Chrome's Dino game.
chrome://dino
- Python
- Python Libraries:
- Pillow
- Numpy
- Pyautogui
Pyhton Download : https://www.python.org/downloads/
1)Open CMD
2)Type (pip install library_name):
-
pip install numpy
-
pip install pillow
-
pip install pyautogui
1] Align the chrome tab to the left.
2] Hit SpaceBar and take a screenshot using Win + PrintScreen.
3] Find the area of pixels in front of the dino to detect obstacles.
- Ceate a rectangle box ahead of the dino
- Hover over the corners to find the X, Y Coordinates
4] Edit the pixel coordinates in the py file.
5] Run and optimize it to your preference.