Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Hide the duplicate Exits line in the player

Aperta
#33 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
full-stack

Direzione di ricerca

Start with packages/engine/src/describe.ts and packages/engine/src/types.ts to see how the exits message becomes an OutputBlock, then read apps/web/src/components/transcript.ts and packages/cli/src/commands/play.ts for rendering behavior. Check packages/engine/src/playtime.ts and section 4 of docs/architecture.md as well. Done when the player hides the exits block, lexvm play still prints it, tests cover both behaviors, and estimates for both packs are unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: engine area: web priority: low type: feature

Context

The default room description ends with a system line listing the exits ("Exits: north, cellar." from the exits message in packages/engine/src/describe.ts). The player also shows the exits as chips in the dock, so every room description lists them twice. lexvm play and other front ends without chips still need the line.

Scope

  • Engine: make the exits block identifiable, for example a dedicated output block kind or a marker on the system block. This is an additive change to the output type, not to the pack format; document it in docs/architecture.md section 4.
  • Player: do not render that block in the transcript; exit chips stay as they are.
  • lexvm play keeps printing it.
  • The play-time estimate ignores the block, as it ignores system blocks today.

Acceptance criteria

  • Room descriptions in the player no longer show the "Exits" or "Ausgänge" line.
  • lexvm play still prints it.
  • An engine test asserts that the block is identifiable; a player test asserts that it is not rendered.
  • Play-time estimates of both packs are unchanged.

References

  • packages/engine/src/describe.ts
  • packages/engine/src/types.ts (OutputBlock)
  • packages/engine/src/playtime.ts
  • apps/web/src/components/transcript.ts
  • packages/cli/src/commands/play.ts
Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
28m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nullthrone/lexvm

Tutte le issue di nullthrone/lexvm

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.