Cookie Simulator

Get Started. It's Free
or sign up with your email address
Cookie Simulator by Mind Map: Cookie Simulator

1. Classes

1.1. ClickerState

1.1.1. Methods

1.1.1.1. time_until as float (cookies)

1.1.1.1.1. input

1.1.1.2. wait as null

1.1.1.2.1. input

1.1.1.2.2. update

1.1.1.3. buy_item as null

1.1.1.3.1. input

1.1.1.3.2. update

1.1.1.4. API

1.1.1.4.1. get_time as float

1.1.1.4.2. get_cps as float

1.1.1.4.3. get_cookies as float

1.1.1.4.4. get_history as list

1.1.2. __init__

1.1.2.1. Properties

1.1.2.1.1. cookies_total as float

1.1.2.1.2. cookies_current as float

1.1.2.1.3. game_time as float

1.1.2.1.4. cps_current as float

1.1.3. __str__ as string

1.1.3.1. return a polite string with relevant details about sim state

2. helper funcions

2.1. simulate_clicker()

2.1.1. input

2.1.1.1. build_info as BuildInfo()

2.1.1.2. duration as float

2.1.1.3. strategy as func

2.1.2. output

2.1.2.1. ClickerState()

2.1.3. body

2.1.3.1. Main Loop

2.1.3.1.1. while game time <= sim time

2.2. strategies

2.2.1. strategy_none as Null

2.2.1.1. input

2.2.1.1.1. cookies

2.2.1.1.2. cps

2.2.1.1.3. history

2.2.1.1.4. time_left

2.2.1.1.5. build_info

2.2.1.2. output

2.2.1.2.1. None

2.2.2. strategy_cursor_broken as Null

2.2.2.1. input

2.2.2.1.1. cookies

2.2.2.1.2. cps

2.2.2.1.3. history

2.2.2.1.4. time_left

2.2.2.1.5. build_info

2.2.2.2. output

2.2.2.2.1. Item

2.2.3. strategy_cheap as Null

2.2.3.1. input

2.2.3.1.1. cookies

2.2.3.1.2. cps

2.2.3.1.3. history

2.2.3.1.4. time_left

2.2.3.1.5. build_info

2.2.3.2. Output

2.2.3.2.1. Item

2.2.4. strategy_expensive as Null

2.2.4.1. input

2.2.4.1.1. cookies

2.2.4.1.2. cps

2.2.4.1.3. history

2.2.4.1.4. time_left

2.2.4.1.5. build_info

2.2.4.2. output

2.2.4.2.1. Item

2.2.5. strategy_best as Nul

2.3. run()

2.3.1. Run the simulator.

2.4. run_strategy

3. Constants

3.1. SIM_TIME

3.1.1. very large number

3.2. INIT_CPS

3.2.1. 1.0

3.3. DASH_LEN

3.3.1. 40

4. imports

4.1. codeskulptor (optional)

4.1.1. *

4.2. poc_clicker_provided

4.2.1. *

4.3. ONE OF

4.3.1. simpleplot

4.3.2. matplotlib.pyplot

4.4. math

4.4.1. ceil