Skip to content

ackleyrc/cookie-clicker-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cookie Clicker Simulator

A simulator of the Cookie Clicker game with an implementation of an optimized strategy

Cookie Clicker Game: http://orteil.dashnet.org/cookieclicker/

Cookie Clicker is a web-based incremental (aka idle) game with the goal of producing as many cookies as possible at a time. To start, you simply click the image of the cookie on the left to produce one new cookie per click. As you acquire more cookies, you may spend them on items that produce cookies automatically at increasingly faster rates. Each time you buy an item, the cost of that item increases by 15%. Find out more about Cookie Clicker (Wikipedia)

Example image of official Cookie Clicker game

This project simulates a game of Cookie Clicker and demonstrates the effectiveness of different strategies. For example, one could buy only Cursors. However, since the cost of an item increases with each purchase, it becomes more effective to buy different items. Instead, one could buy the cheapest item as soon as it's available, or only the most expensive item as soon as it can be afforded. While the cheapest strategy yields production increases at a faster rate, both often ignore items that produce greater gains given its cost. In fact, a strategy of simply choosing a random item to save up for and purchase may often outperform any of those mentioned so far. An optimized strategy, however, as implemented here, is to always purchase next the item that produces the most cookies per second per unit cost.

![Example image of output of Cookie Clicker simulator](images/Screen Shot 2016-10-03 at 12.58.16 PM.png)

Note: to also view the purchase history of the simulation(s), uncomment the second print line in run_strategy().

![Image showing where to uncomment purchase history print statement](images/Screen Shot 2016-10-03 at 1.17.43 PM.png)

About

A simulator of the Cookie Clicker game with an implementation of an optimized strategy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages