mirror of
https://github.com/OMGeeky/hcsalmon1-Chess-Engine-Test.git
synced 2026-02-23 15:49:51 +01:00
Update Algorithm explanation.txt
This commit is contained in:
@@ -547,7 +547,7 @@ This can be a problem if "square" is not valid though. I do it this way:
|
|||||||
When you minus 1 bitboard, it removes the smallest bit and sets all bits below it.
|
When you minus 1 bitboard, it removes the smallest bit and sets all bits below it.
|
||||||
We then just AND this with the bitboard to remove the smallest bit.
|
We then just AND this with the bitboard to remove the smallest bit.
|
||||||
|
|
||||||
1 1 1 1 1 1 1 1
|
_ _ _ _ _ _ _ _
|
||||||
_ 1 1 1 1 1 1 1
|
_ 1 1 1 1 1 1 1
|
||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
@@ -555,7 +555,7 @@ We then just AND this with the bitboard to remove the smallest bit.
|
|||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
&
|
&
|
||||||
1 1 1 1 1 1 1 1
|
1 1 1 1 1 1 1 1
|
||||||
_ 1 1 1 1 1 1 1
|
_ 1 1 1 1 1 1 1
|
||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
@@ -574,6 +574,7 @@ We then just AND this with the bitboard to remove the smallest bit.
|
|||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
_ _ _ _ _ _ _ _
|
_ _ _ _ _ _ _ _
|
||||||
|
|
||||||
|
We removed the first piece.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user