Skip to content

feat: add Hex coordinate string key#124

Open
kikiminyes wants to merge 1 commit into
Hellenic:masterfrom
kikiminyes:add-hex-tostring
Open

feat: add Hex coordinate string key#124
kikiminyes wants to merge 1 commit into
Hellenic:masterfrom
kikiminyes:add-hex-tostring

Conversation

@kikiminyes

Copy link
Copy Markdown

Summary

  • Add Hex.toString() so hex coordinates can be used as stable map/object keys.
  • Add a regression test for the string key format.

Closes #23.

Validation

  • npx jest test/src/models/Hex.test.ts --runInBand
  • npm run tsc
  • npm test -- --runInBand
  • git diff --check

Full Jest result: 8 suites passed, 35 tests passed, 1 skipped.

@kikiminyes kikiminyes mentioned this pull request Jun 6, 2026
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.

toString functions on models

1 participant