Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add save slots to the player

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
backend, database

Research direction

Start with apps/web/src/services/saves.ts, apps/web/src/logic/saves.ts, apps/web/src/services/storage.ts and apps/web/src/game/session.ts; read section 5 of docs/architecture.md for the save model. Trace autosave and storage behavior, then identify how the existing replay flow handles older pack versions. Done means the listed slot, migration, offline, conflict, warning and end-to-end acceptance criteria pass.

Written by the indexing model from the issue text.

Description

area: web priority: medium type: feature

Context

The player keeps one autosave per pack, and New game overwrites it. Players want to try alternatives, keep a save before the finale, or share a device. The save format lexvm-save/1 already contains everything; slots are a host feature with no format change.

Scope

  • Keep the autosave; add up to five manual slots per pack: Save to slot and Load from slot in the game menu. The meta commands save and load open the slot sheet (today they export and import a file).
  • Slot list: editable label, room name, score, turn and time saved.
  • New game no longer touches manual slots.
  • Export and import per slot with the existing .lexsave.json files.
  • Loading a slot from an older pack version uses the existing replay flow.
  • Storage migration: existing v0.1 autosaves stay readable.
  • Deleting an imported pack deletes its slots after confirmation.
  • Slots follow the two-tab rule of the autosave: a tab never silently overwrites a slot that another tab has written since.

Acceptance criteria

  • A v0.1 autosave loads after the upgrade (migration test).
  • Save to slot, play on, load slot restores state, log and revealed hints.
  • Slots survive reloads and work offline.
  • An end-to-end test covers save, continue and load.
  • With storage unavailable, slots work for the session and the existing warning is shown.

References

  • apps/web/src/services/saves.ts
  • apps/web/src/logic/saves.ts
  • apps/web/src/services/storage.ts
  • apps/web/src/game/session.ts
  • docs/architecture.md (section 5, Saves)
Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
28m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nullthrone/lexvm

All issues in nullthrone/lexvm

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.