Repository navigation
Demo vs full game: Daily best time, 3 demo rides a day, no practice split (#641) - #642
Open
petegordon wants to merge 2 commits into
Open
petegordon wants to merge 2 commits into
petegordon wants to merge 2 commits into
Conversation
…plit (#641) - Daily Ride: the practice/ranked chooser is gone. Every ride counts and the day's best unaided time is kept. The full game is unlimited; the demo gets 3 rides a day (counted at start), opened by finishing the Tutorial and Grandma's. - The demo rides the real Daily on Adventurous; #400's Weekly Ride is removed. - Helping hand on every Daily ride. Any help (SAFETY/SPEED, silent tune, ASSIST, helping hand, shortcut) keeps a ride off the board. - Share strip: today's best plus "1st try". - Server POST /daily keeps the better time instead of 409ing a second ride (board still dark behind DAILY_BOARD_ENABLED). - Demo: Versus and 5 bike colours locked, 20 opt-in achievements, level scores still off the leaderboard (postScores). - Tests: unit + smoke:daily-best (replaces smoke:ranked), smoke:edition and the smokes that clicked the old chooser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDbZGpypLbzSQxBu62RC96
|
) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDbZGpypLbzSQxBu62RC96
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #641. Builds the demo-vs-full design agreed with Pete on 2026-11-07.
Daily Ride: one rule for both editions
Server (
worker/leaderboard.js, auto-deploys on merge)POST /dailyused to answer a second result with a 409. It now keeps the better time: a finish replaces a DNF or a slower time, and a DNF only fills an empty day. The UNIQUE key and the table are unchanged, so no migration. Pre-#641 builds still work (they get 200 instead of 409). Tested against real SQLite (test/unit/daily-board-upsert.test.mjs).The Daily board is now on (
DAILY_BOARD_ENABLED = true, Pete 2026-11-07): every clean Daily finish posts, demo included. No screen in the game shows the board yet (auth.fetchDailyBoardhas no caller); that view is a follow-up design question.Demo scope
DEMO_ACHIEVEMENTSinjs/edition.js) replaces the 21demo: falseflags. The other 80 keep counting stats and unlock on the full game's first check.postScoresrule, on in both editions; Pete 2026-11-07).Achievement text (Steam resync needed after merge)
daily_firstDaily Ride: "Finish your first Daily Ride" (was "first ranked").daily_practice_10Practice Makes Perfect: "Finish 10 Daily Rides".daily_goldRoad Scholar: dropped "(practice counts)".Tests
npm test: all unit tests pass. Updated: edition, room-edition, achievements, economy, daily-ride. New: the share strip with first try, and the board upsert. Removed: weekly-road.smoke:daily-best(replacessmoke:ranked): no chooser, rides count, a retry is the same ride, help keeps a ride off the board, best plus first try, demo lock then 3 rides then refused.smoke:edition: demo Daily locked → opens → 3 rides, Versus and bikes locked, full game unlimited.smoke:tv-playtest,smoke:tourist-coop,smoke:helping-hand,smoke:hud-layout, plusshot-end-sheets/probe-props/smoke-grandma-finish/smoke-props-3d.🤖 Generated with Claude Code
https://claude.ai/code/session_01VDbZGpypLbzSQxBu62RC96