-
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.
feat: modules for significant sections
- Loading branch information
1 parent
2f1b970
commit ffc5af5
Showing
8 changed files
with
76 additions
and
88 deletions.
There are no files selected for viewing
Empty file.
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 was deleted.
Oops, something went wrong.
Empty file.
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,38 @@ | ||
""" | ||
This contains the mapping used for | ||
the Grimbergen evaluation of pieces. | ||
""" | ||
|
||
from shogi import ( | ||
BISHOP, | ||
GOLD, | ||
KNIGHT, | ||
LANCE, | ||
PAWN, | ||
PROM_BISHOP, | ||
PROM_KNIGHT, | ||
PROM_LANCE, | ||
PROM_PAWN, | ||
PROM_ROOK, | ||
PROM_SILVER, | ||
ROOK, | ||
SILVER, | ||
) | ||
|
||
GRIMBERGEN = { | ||
PAWN: 1, | ||
LANCE: 3, | ||
KNIGHT: 3, | ||
SILVER: 5, | ||
GOLD: 5, | ||
BISHOP: 8, | ||
ROOK: 9, | ||
PROM_PAWN: 5, | ||
PROM_LANCE: 5, | ||
PROM_KNIGHT: 5, | ||
PROM_SILVER: 5, | ||
PROM_BISHOP: 12, | ||
PROM_ROOK: 13, | ||
} |
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