Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🦖 Nohands

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.


🎮 How It Works (Quick Overview)

  1. Run the script and switch to your browser's Dino game within 5 seconds
  2. Nohands continuously takes small screenshots of the area just ahead of the dino
  3. It scans pixel-by-pixel for a run of dark gray pixels matching cactus color
  4. The moment an obstacle is detected, it presses Space to jump
  5. A short cooldown prevents the same obstacle from triggering multiple jumps

🛠️ Tech Stack

  • Python 3
  • PyAutoGUI — simulating the spacebar keypress
  • Pillow (PIL.ImageGrab) — capturing screenshots of the detection zone

📁 Project Structure

nohands/
├── code.py          # Full bot logic
└── README.md

▶️ Getting Started

Prerequisites

pip install pyautogui pillow

Running the Bot

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.


⚙️ Calibration

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 dino
  • OBSTACLE_COLOR — the RGB color of the cactus obstacles in your browser's rendering
  • COLOR_TOLERANCE — how much a pixel's color can differ from OBSTACLE_COLOR and still count as a match
  • JUMP_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.


⚠️ Disclaimer

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.


📝 License

This project is licensed under the MIT License — see the LICENSE file for details.

About

An auto-jump bot for the Chrome Dino game, built with Python, PyAutoGUI, and Pillow. It captures the screen area ahead of the dino, detects obstacles by pixel color matching, and automatically presses Space to jump. Includes configurable detection zone, color tolerance, and jump cooldown.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages