Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jonsoft
6 months ago
|
parent
|
context
|
favorite
| on:
How to store a chess position in 26 bytes (2022)
I thought the same but realized you can retrospectively 'insert' the king positions into the position sequence, shifting the remaining sequence one square along for each king, so no more bits required though the data structure is unwieldy!
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: