logoalt Hacker News

SkiFire13last Friday at 7:04 PM2 repliesview on HN

If you are writing a chess engine you'll want to store hundreds of millions of positions while you search for the best move and at that scale a byte is important because it gets multiplied by an enormous factor.


Replies

jmward01last Friday at 7:10 PM

But that is a totally different problem which requires far fewer bytes to represent. For that problem you are just considering of the valid pieces which made a move and what board that came from. Storing a single move is far cheaper than an entire board state.

show 1 reply
not_the_fdalast Friday at 8:11 PM

If they cared about that, then it wouldn't have been written in python. This is an exercise of the author showing how clever they are.