Repository navigation
Hilfen je Zeile bepreisen, Live-Prüfung entfernen, Sprachsteuerung „Dame zuerst“ - #73
Merged
Merged
Conversation
- "Prüfen" now costs one second per row (5 s on 5×5 … 14 s on 14×14), once per board state; the live lamp pays per verdict it shows, since it is an automatic press. The button wears its price, the clock shows it, and the win card / row tooltips spell it out. - Server: `checks` column, queens_check_penalty(), five-argument queens_score(), an eight-argument submit_score with p_checks, and top_scores returns the count. The client sends p_checks only when > 0, so a check-free solve works against an un-migrated database. - Voice Mode: accept "deine" as a mis-hearing of "Dame", and a new sub-option "Koordinate setzt zuerst eine Dame" that makes a bare coordinate cycle empty → queen → dot → empty (per-cell undo). - Landscape action column floor raised to 165px so both priced buttons fit in every language pack. Tests: tests/sql/check-penalty.sql, tests/logic/tap-cycle.mjs, tests/browser/check-cost.mjs, plus additions to percentile, voice-parse and voice-mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JtrV3sbDm21h8SVCYHwyZy
- A hint now costs 3 s per board row (15 s on 5×5, 24 s on 8×8, 30 s on
10×10, 42 s on 14×14) instead of a flat 30 s, which tripled a typical
small-board solve and was noise on a big one. hintPenalty() in
js/highscores.js mirrors queens_hint_penalty() in the SQL; the section 3
backfill re-prices stored rows with hints, and the size-less
three-argument queens_score is dropped.
- The live check ("Live-Prüfung") is removed: a verdict after every move
turns the game into guess-and-check. "Prüfen" is on demand only, and
the next move clears its verdict.
- Both buttons' price tags follow the board size (updateCostLabels).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JtrV3sbDm21h8SVCYHwyZy
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.
Was sich ändert
Hilfen kosten jetzt Zeit pro Zeile des Feldes
Live-Prüfung entfernt. Der Schalter, die Einstellung und die Texte in allen sechs Sprachen sind weg. Prüfen gibt es nur noch auf Knopfdruck oder per Sprachbefehl, und das Ergebnis verschwindet mit dem nächsten Zug.
Sprachsteuerung (Beta)
Server (
docs/leaderboard-setup.sql)checks(Default 0),queens_hint_penalty(),queens_check_penalty()und die Fünf-Parameter-Form vonqueens_score().queens_score()wird entfernt.submit_score-Überladung mitp_checks, undtop_scoresliefertchecksmit.p_checksnur, wenn der Wert größer als 0 ist.updatein Abschnitt 3 berechnet dabei die Bestandszeilen mit Hinweisen neu: unter 10×10 werden sie besser, darüber schlechter, auf 10×10 bleiben sie gleich.Sonstiges: Die Button-Spalte im Querformat ist jetzt mindestens 165 px breit, damit beide Preisschilder in allen Sprachen passen.
Tests
tests/sql/check-penalty.sql,tests/logic/tap-cycle.mjs,tests/browser/check-cost.mjs.live-check-sticky.mjs.maindurchgespielt: 5×5 mit Hinweis 50 → 35 s, 10×10 unverändert, 14×14 mit 2 Hinweisen 120 → 144 s.🤖 Generated with Claude Code
https://claude.ai/code/session_01JtrV3sbDm21h8SVCYHwyZy
Generated by Claude Code