Skip to content

Add SnakePlay.reset to restore players and clear items - #2

Open
kvnloo wants to merge 1 commit into
xt4d:mainfrom
kvnloo:fix/snakeplay-reset
Open

Add SnakePlay.reset to restore players and clear items#2
kvnloo wants to merge 1 commit into
xt4d:mainfrom
kvnloo:fix/snakeplay-reset

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 1, 2026

Copy link
Copy Markdown

Summary

  • summary.md says SnakePlay owns reset behavior; CombatPlay / FlightPlay already expose reset(), but SnakePlay did not.
  • Store initial segments on addPlayer and restore them in reset(), also clearing items.
  • Pin with SnakePlay.test.js.

Test plan

  • node --experimental-default-type=module --test gameblocks/modules/gameplay/SnakePlay.test.js

Independent verify: parent threw play.reset is not a function; SHA 87c770cdbb95c57c96603272d3ee7a1189bb78d3 passes SnakePlay.test.js 1/1.

summary.md already describes reset behavior; other play modules expose it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant