Skip to content

Commit

Permalink
Fix support for no square
Browse files Browse the repository at this point in the history
  • Loading branch information
yjf2002ghty committed May 3, 2024
1 parent eba6955 commit 5d862eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ struct PieceTypeBitboardGroup
{
size_t i;
this->boardlist = (Bitboard*)malloc(PIECE_TYPE_COUNT * sizeof(Bitboard));
// By default, all squares are allowed for all pieces.
// By default, all bits are ZERO for all pieces.
for (i = 0; i < PIECE_TYPE_COUNT; i++)
{
this->boardlist[i] ^= ~this->boardlist[i];
this->boardlist[i] ^= this->boardlist[i];
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/variants.ini
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
# [PieceSet]: multiple piece types [letters defined for pieces, e.g., nbrq]
# [CastlingRights]: set of castling rights [letters for castling rights as in FEN, e.g., KQkq]
# [Bitboard]: list of squares [e.g., d4 e4 d5 e5]. * can be used as wildcard for files (e.g., *1 is the first rank)
# [PieceTypeBitboardGroup]: list of squares for different pieces. * can be used as wildcard for files and ranks (e.g., *1 is the first rank, ** means everywhere, a* means file a). The syntax is [<piece char (in upper case)>(<location[, ...]>); [...]]. Pieces not specified are equivalent to "<not specified piece char>(**);". Example: P(e4,*1);Q(a1,a2,b*);K(**);
# [PieceTypeBitboardGroup]: list of squares for different pieces. * can be used as wildcard for files and ranks (e.g., *1 is the first rank, ** means everywhere, a* means file a). The syntax is [<piece char (in upper case)>(<location[, ...]>); [...]]. Pieces not specified have no square. Example: P(e4,*1);Q(a1,a2,b*);K(**);
# [Value]: game result for the side to move [win, loss, draw]
# [MaterialCounting]: material counting rules for adjudication [janggi, unweighted, whitedrawodds, blackdrawodds, none]
# [CountingRule]: makruk, cambodian, or ASEAN counting rules [makruk, cambodian, asean, none]
Expand Down

0 comments on commit 5d862eb

Please sign in to comment.