News for hackers. Stuff that matters.
Re:Building My Own Chess Engine by benibela on Thursday December 24, 2020 @06:29AM (#25526644)
>- A 10x10 board with an unreachable edge has some advantages when laid out as a linear array because it allows for much easier memory management (premature optimizations and all that...). On an 8x8 board laid out linearly the edges have no way of limiting piece movement

But with an 8x8 board you can store all free fields in a single 64-bit integer

That could be fast, would it not?

Re:Building My Own Chess Engine by __s on Thursday December 24, 2020 @11:07AM (#25528659)
There's quite a few tricks on that front: https://www.chessprogramming.org/Magic_Bitboards
Re:Building My Own Chess Engine by jacquesm on Thursday December 24, 2020 @07:44AM (#25526997)
That's worth benchmarking. 10x12 as mentioned above would require two of those.