Skip to content

Handle empty board pop#15

Draft
RainRat wants to merge 1 commit intomasterfrom
codex/update-board-pop-method-to-handle-empty-stack
Draft

Handle empty board pop#15
RainRat wants to merge 1 commit intomasterfrom
codex/update-board-pop-method-to-handle-empty-stack

Conversation

@RainRat
Copy link
Owner

@RainRat RainRat commented Sep 20, 2025

Summary

  • return a boolean status from Board::pop and guard against empty move stacks before undoing
  • update the TypeScript declaration so pop advertises the new return type
  • extend the JavaScript tests to verify successful undos and the empty-stack behaviour

Testing

  • npm test (fails: Cannot find module './ffish.js')

https://chatgpt.com/codex/tasks/task_e_68ce42eb19e083308297b78a7e3e77b6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant