Make Sokko TCG's Current Race fairer and explain each race afterwards
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 23m50s
Validate and deploy Sokko G / deploy (push) Successful in 18s

Players kept finishing third or fourth: opponents were played better than
their owners would (always the best runner, half of them with perfect
boosts and no reaction time), and the Watchers recruited knowing the day's
circuit, which players never see.

- A player who already ran today now comes back as a ghost with their real
  race; other teams play like an attentive player (best runner, each
  teammate given in a zone of its best stat after a reaction delay). The
  Watchers recruit blind; only the strong one plays attentively. The
  administration counts the ghosts.
- The rule that a boost keeps the value of the zone where it was given is
  now stated before and during the race.
- A boosting teammate is greyed at once with "Élan donné", a 1.5 s bar and
  its locked value; the others dim while the player has to wait.
- The result shows the place as a medal, the finish as lanes (with a gold
  silhouette at the best boosts), the three times, each boost placed on
  the circuit (dashed in the teammate's best stat when it was worth more
  elsewhere), a sentence per boost to place better and, when clearly
  faster, another runner. The best boosts are searched in the browser.
- A development-only "Recourir (dev)" button erases the race and keeps the
  team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-30 16:18:18 +01:00
parent 8253f74c90
commit 52df57f781
16 changed files with 603 additions and 102 deletions

View file

@ -48,7 +48,7 @@ function RaceToday({ race }) {
: <p className="nebula-form-help">Le parcours se tire à la première visite d’un joueur.</p>}
<dl className="nebula-admin-race-figures">
<div><dt>Places des joueurs</dt><dd>{race.places.map((count, index) => `${index + 1}${index ? "e" : "re"} : ${number(count)}`).join(" · ")}</dd></div>
<div><dt>Adversaires</dt><dd>{opponents ? `${number(race.opponents.players)} équipe${race.opponents.players > 1 ? "s" : ""} de joueurs · ${number(race.opponents.watchers)} des Veilleurs` : "Aucune course lancée."}</dd></div>
<div><dt>Adversaires</dt><dd>{opponents ? `${number(race.opponents.players)} équipe${race.opponents.players > 1 ? "s" : ""} de joueurs (dont ${number(race.opponents.ghosts)} avec leur vraie course) · ${number(race.opponents.watchers)} des Veilleurs` : "Aucune course lancée."}</dd></div>
</dl>
</section>;
}