Lichess uses a scheme which is probably more efficient on average, described on revoof's blog[0]. Basically, it's a variable length scheme where the first 64 bits encode square occupancies, followed by piece codes (including castling, side to move, and ep with some trickery), followed by half-move clocks if necessary.0: https://lichess.org/@/revoof/blog/adapting-nnue-pytorchs-bin...
bonzini|1 month ago
datsci_est_2015|1 month ago
Some systems just have to be observed in order for solutions to be optimally designed around how they actually behave, rather than how they theoretically behave.