arXiv · 0704.3773
Avoiding Rotated Bitboards with Direct Lookup
Abstract
This paper describes an approach for obtaining direct access to the attacked squares of sliding pieces without resorting to rotated bitboards. The technique involves creating four hash tables using the built in hash arrays from an interpreted, high level language. The rank, file, and diagonal occupancy are first isolated by masking the desired portion of the board. The attacked squares are then directly retrieved from the hash tables. Maintaining incrementally updated rotated bitboards becomes unnecessary as does all the updating, mapping and shifting required to access the attacked squares. Finally, rotated bitboard move generation speed is compared with that of the direct hash table lookup method.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Sam Tannous. 2007-07-23. Avoiding Rotated Bitboards with Direct Lookup. https://arxiv.org/abs/0704.3773
Cite the original work for its findings. Save a collection to share your selection of sources.