Browser Mod
Fortune Cookie 2.0
A Cookie Clicker mod update that forecasts the next rare Sweet / Free Sugar Lump outcome by scanning seeded spell RNG in browser-safe chunks.

Employer signal
What This Project Shows
This project shows that I can read an existing codebase, extend it without disrupting the original interface, and solve a performance problem caused by long client-side search.
Problem
What Needed To Be Solved
The rare Sweet outcome can be hundreds of thousands of spell positions away. Expanding the normal forecast table that far would be unreadable and could freeze the browser.
Approach
How I Built The Solution
I added a focused Sweet forecast path rather than overloading the regular forecast. The mod simulates future Force the Hand of Fate outcomes from the game seed and total spell count, then scans for `Free Sugar Lump` with cache invalidation when relevant game state changes.
Outcome
What It Demonstrates
The result is a targeted feature that extends a community mod while preserving user experience and browser responsiveness.
Evidence From Source
Source signal
The mod uses `Game.seed + '/' + spellCount`, `getSweetForecastContext()`, `ensureSweetForecastScan()`, and chunk sizes around 5000 checks.
Performance signal
The important implementation detail is not only finding the result, but doing it without freezing a live game page.