Changes

Jump to: navigation, search

Classical Approach

129 bytes added, 10:05, 4 November 2021
no edit summary
<span id="InOneRun"></span>
==In one Run==
As mentioned by [[Robert Hyatt]] <ref>[httphttps://www.talkchess.com/forumforum3/viewtopic.php?topic_viewf=threads7&pt=29956430356&tstart=30356 14 Re: Yet another bitboard attack generator] by [[Robert Hyatt]], [[CCC]], October 28, 2009</ref>, instead of fetching four [[On an empty Board#RayAttacks|ray-attacks]] on the otherwise empty board, one may already use the [[On an empty Board#PieceAttacks|rook- or bishop attacks]] to reset outer squares from that union set.
A further improvement was suggested by [[Michael Sherwin]] <ref>[http://www.talkchess.com/forum/viewtopic.php?t=30971 Modified old 64 bit attack getter] by [[Michael Sherwin]], [[CCC]], December 06, 2009</ref>, to union the occupancy with the outer bits 0 and 63. Together with appropriate bits set in separate ray-masks, this yields to an efficient branchless solution with 13 64-bit operations in total and 4.5 KByte for the lookup tables for both rooks and bishops each.
=Forum Posts=
* [http://www.talkchess.com/forum/viewtopic.php?topic_view=threads&p=257692&t=27113 Re: Thinker output] by [[Robert Hyatt]], [[CCC]], March 25, 2009
* [httphttps://www.talkchess.com/forumforum3/viewtopic.php?topic_viewf=threads7&pt=29956430356&tstart=30356 14 Re: Yet another bitboard attack generator] by [[Robert Hyatt]], [[CCC]], October 28, 2009
* [http://www.talkchess.com/forum/viewtopic.php?t=30971 Modified old 64 bit attack getter] by [[Michael Sherwin]], [[CCC]], December 06, 2009
* [https://www.talkchess.com/forum3/viewtopic.php?f=7&t=78562 Bob used to do it this way] by [[Michael Sherwin|Mike Sherwin]], [[CCC]], October 31, 2021
=References=

Navigation menu