An auto-jump bot for the Chrome Dino game — no hands required.
Nohands watches a defined region of your screen in front of the dino, detects obstacles by scanning for their characteristic dark gray color, and automatically presses Space to jump the instant one's detected. Just start the script, switch to the Dino game, and watch it play itself.
- Run the script and switch to your browser's Dino game within 5 seconds
- Nohands continuously takes small screenshots of the area just ahead of the dino
- It scans pixel-by-pixel for a run of dark gray pixels matching cactus color
- The moment an obstacle is detected, it presses Space to jump
- A short cooldown prevents the same obstacle from triggering multiple jumps
- Python 3
- PyAutoGUI — simulating the spacebar keypress
- Pillow (
PIL.ImageGrab) — capturing screenshots of the detection zone
nohands/
├── code.py # Full bot logic
└── README.md
pip install pyautogui pillow
git clone https://github.com/rhitamcoder/nohands.git
cd nohands
python code.py
You have 5 seconds after running the script to switch to the Dino game (chrome://dino or trigger it by going offline in Chrome). Once the countdown ends, the bot takes over.
The detection zone and obstacle color are currently tuned to a specific screen resolution and browser window position. If the bot isn't detecting obstacles correctly on your setup, you'll likely need to recalibrate:
CHECK_LEFT/CHECK_TOP/CHECK_RIGHT/CHECK_BOTTOM— the screen coordinates of the detection zone, just in front of the dinoOBSTACLE_COLOR— the RGB color of the cactus obstacles in your browser's renderingCOLOR_TOLERANCE— how much a pixel's color can differ fromOBSTACLE_COLORand still count as a matchJUMP_COOLDOWN— minimum seconds between jumps, to avoid multiple jumps for the same obstacle
To find your own coordinates, you can temporarily print your mouse position using pyautogui.position() while hovering over the area just ahead of the dino.
This project is for educational and experimental purposes — exploring screen capture, pixel detection, and input automation with Python. Automating gameplay may violate the terms of service of certain platforms or games; use responsibly and at your own discretion.
This project is licensed under the MIT License — see the LICENSE file for details.