Skip to content

SahasTechnologies/Cookie-Clicker-Automator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1a38711 · · Dec 20, 2025

History

1 Commit
Dec 20, 2025
Dec 20, 2025
Dec 20, 2025
Dec 20, 2025
Dec 20, 2025
Dec 20, 2025

Repository files navigation

Cookie Clicker Automator

Note: For this, the guide doesn't use the original https://orteil.dashnet.org/cookieclicker/. Instead, it'll use a community version, https://ozh.github.io/cookieclicker/.

How to run this code:

Note

This guide is for a Windows laptop. I don't have a mac so i cant tell you what to do if you have a mac... so yeah sorry 'bout that

  1. Make sure Python is installed on your system - go to https://www.python.org/ to download it.
  2. Once it is downloaded, press the code button on the side and download as ZIP (if you have git on your system, you can clone it instead)
  3. Click on run.bat to automatically run the file

How to cheat:

For actually cheating, in the folder, open main.py in notepad. Then, remove this line: script = 'script.js' # REMOVE THIS LINE FOR DA CHEAT It should be the 7th line from the top. Then, in command prompt, run py main.py again. It will instantly gve you a million billion whatever cookies and 100 of all the buildings..

Note for developers:

Here is more info about the project: . It uses a Python controller to manage the browser and a JavaScript engine to execute logic directly within the game's internal frame.

Project Structure

  • main.py: The "Brain." It launches Chrome, reads your chosen script, and handles the terminal display.

  • script.js: The "Optimizer." A smart bot that plays the game efficiently using math (15 Cursors -> 10 Grandmas -> Efficiency). This is so that the bot can get started on buildings and then worry about efficiency,iency,

  • badscript.js: The "God Mode." A one-time injection that grants infinite cookies, 100 of every building, and every upgrade.

How to Use

1. Requirements
  • Python 3.x

  • Selenium: pip install selenium or use the requirements.txt

  • Chrome Browser

2. Execution

Run the run.bat file on your laptop.

Warning

This bat file only works on Windows devices.

The Logic Modes

Mode A: What you should do (script.js)

Designed to play the game like a pro without actually "cheating" it.

  1. Phase 1: Clicks the cookie and shimmers (Golden Cookies) at max speed.

  2. Phase 2: Hard-focuses on reaching 15 Cursors.

  3. Phase 3: Hard-focuses on reaching 10 Grandmas. Phase 2 and 3 exist so that the bot can start off with some buildings early on in the game

  4. Phase 4 (Efficiency): Calculates the C p S ÷ P r i c e ratio for every building and buys the best value.

Mode B: God Mode (badscript.js)

Bypasses all game mechanics for total control.

  • Cookie Inflation: Runs Game.Earn() with a massive value 50 times.

  • Instant Real Estate: Forces the quantity of every building type to 100.

  • Knowledge Grab: Unlocks and buys every single upgrade in the game database.

  • State Sync: Forces the game to recalculate CPS based on the new "cheated" values.

Caution

This code allows you to cheat in this game, and it removes all of the fun. (you'll get what I mean when you run badscript.js). This code is meant for educational purposes only.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published