Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
alexb_
on Sept 15, 2023
|
parent
|
context
|
favorite
| on:
How to store a chess position in 26 bytes using bi...
That's just not true. Pawns can only be captured en passant on one rank for each color.
Dylan16807
on Sept 15, 2023
[–]
Yes
for each color
. That means
two
pawns for each column can be in position to be captured en passant. And also two pawns can be in capturing position.
Edit: Column combined with whose turn it is will work, but not just column.
mlyle
on Sept 16, 2023
|
parent
[–]
Part of a chess position is whose turn to move. That has to be encoded anyways.
Dylan16807
on Sept 16, 2023
|
root
|
parent
[–]
I guess, but the article wasn't trying to do so.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: