Plenty of people walk the aisles of a Costco warehouse and guess the price of a bulk pack before they look at the tag. Wordle showed that one small puzzle a day, the same for everyone and finished in about a minute, can quietly turn into a habit. I put those two things together.
Costcodle is a free daily Costco price guessing game. Every day everyone gets the same Costco item and six guesses to land within 5% of its price. A new item starts at 00:00 UTC. It runs in the browser, there is no account, and your stats stay on your device.
How a round works
One item. You see a product photo, its name and the pack size. Bulk sizes are part of the challenge.
A typed guess. Enter a dollar amount like 12.99 and press Submit. Anything from $0.01 to $999,999.99 with at most two decimals is accepted.
A receipt for feedback. Each guess prints a new line on a receipt. Higher or Lower tells you which way to go. Within 25% of the price, the line is marked Close.
A 5% target. Land within 5% of the price, edges included, and you win. Use all six guesses without getting there and the receipt reveals the answer.
The prices are snapshots collected for the original Costcodle game, so treat them as a fun reference rather than today's shelf price. Real prices change over time and differ by location.
A real game looks like this
Here is puzzle #1122 from October 15, 2026, an Organic Crimini Mushrooms 24 oz pack. It is a past puzzle with a published answer, so nothing here spoils a live game.
- Guess $4.00. The receipt says Higher. The guess is 33% off, outside the Close band.
- Guess $7.00. The receipt says Close and Lower. Now it is 17% off.
- Guess $6.00. Win.
The price was $5.99, and the winning range was $5.70 to $6.28. Solved in 3 of 6 guesses. This exact game is also the 30-second walkthrough video if you would rather watch it than read it.
Three ways to play
The daily puzzle is the main event. One item for the whole world each day, with your games played, win rate, streaks and guess distribution saved in your browser. Once you finish, the Stats panel also shows how everyone did on today's item: players, win rate and the spread of wins by number of guesses.
Costcodle Unlimited deals random past items one after another, with the same six guesses and the same 5% rule. It never touches your daily streak, so it works as a warm-up or as a way to keep going after the daily game.
Costcodle answers lists the published answers of past puzzles, each with its game price and winning range.
When you finish, you can share your receipt as a short grid: one row per guess, colored for Win, Close or Far, with an arrow for Higher or Lower. The price is never in it, so friends can still play the same item.
Stack notes for the engineers in the room
A price game has one secret to keep, and the browser is the wrong place to keep it. Most of the engineering went into that and into getting the rules exactly right.
Integer cents everywhere. Every amount is an integer number of cents. The win check is written as |guess - price| * 100 <= price * 5, so the 5% edge is exact with no floating point in the way. On #1122, $5.70 wins and $5.69 is only Close; $6.28 wins and $6.29 is Close again.
The answer stays on the server. Each guess is a POST that the server judges. A game in progress lives in a token signed with HMAC-SHA-256, so the server keeps no session table, and only the response that ends the game, win or loss, carries the price. The page HTML, the JavaScript bundle and the structured data never contain today's price, and a build check fails if a file a browser can download carries question bank data.
Practice never leaks the daily game. Unlimited deals only puzzles that are over: never today's, never a future one, and never yesterday's while its grace window is still open. That rule is one function in the rules package, so the daily game and the practice mode cannot disagree about it.
A schedule in UTC. Puzzle numbers are computed from an anchor (October 15, 2026 is #1122) plus whole UTC days. If you started a game before midnight, you have a 10 minute grace window to finish it.
The rules are open source. costcodle-rules is the rules engine behind the site: guess judging, price parsing, the daily schedule and the spoiler-free share text. It is MIT licensed, pure TypeScript with no runtime dependencies, and published on npm under the same name. It is exported from the site's own repository, so it is the code the live game runs, and every example in its README is covered by a test.
import { evaluateGuess, winningRange } from "costcodle-rules";
evaluateGuess(400, 599); // { guessCents: 400, band: "far", direction: "higher" }
evaluateGuess(700, 599); // { guessCents: 700, band: "close", direction: "lower" }
evaluateGuess(600, 599); // { guessCents: 600, band: "win", direction: "none" }
winningRange(599); // { minCents: 570, maxCents: 628 }
One Worker. The site is Astro with React islands on a single Cloudflare Worker, with D1 for data and a private R2 bucket for product photos. Pages are cached at the edge under a key that includes the build version and a publication revision, so publishing a new answer page makes the old copies unreachable without purging anything. The same Worker runs three scheduled jobs: one fetches the next product photo at 23:55 UTC, one publishes the answer pages of finished puzzles just after midnight, and an hourly one retries anything that failed.
Pricing
| Part | Price | Account |
| Daily puzzle | Free | None |
| Costcodle Unlimited | Free | None |
| Costcodle answers | Free | None |
| costcodle-rules | MIT license | None |
Costcodle is an independent fan game. It is not affiliated with, endorsed by, or sponsored by Costco Wholesale Corporation.
Your turn
If you play a round, I would like to hear how close your first guess was. And for the developers here: would you set the Close band at 25%, or is that too generous for a game with a 5% target?