-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e215e0
commit c4cb549
Showing
11 changed files
with
261 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package evaluation | ||
|
||
var ( | ||
bitboardFileA uint64 = 0x0101010101010101 | ||
bitboardFileH uint64 = 0x8080808080808080 | ||
) | ||
|
||
func calculatePawnFileFill(pawnBitboard uint64) uint64 { | ||
pawnBitboard |= calculatePawnNorthFill(pawnBitboard) | ||
pawnBitboard |= calculatePawnSouthFill(pawnBitboard) | ||
return pawnBitboard | ||
} | ||
|
||
func calculatePawnNorthFill(pawnBitboard uint64) uint64 { | ||
pawnBitboard |= (pawnBitboard << 8) | ||
pawnBitboard |= (pawnBitboard << 16) | ||
pawnBitboard |= (pawnBitboard << 32) | ||
return pawnBitboard | ||
} | ||
|
||
func calculatePawnSouthFill(pawnBitboard uint64) uint64 { | ||
pawnBitboard |= (pawnBitboard >> 8) | ||
pawnBitboard |= (pawnBitboard >> 16) | ||
pawnBitboard |= (pawnBitboard >> 32) | ||
return pawnBitboard | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.