Skip to content

Commit

Permalink
Seirawan mating conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexobviously committed Feb 4, 2024
1 parent 4537a33 commit 72b6cb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### 1.4.1
- **Potentially breaking**: FEN strings without castling rights specified now default to no castling rights, instead of all castling rights.
- **Potentially breaking**: FEN strings without castling rights specified now default to no castling rights, instead of all castling rights (thanks @govind-maheshwari2).
- Fixed Seirawan chess mating conditions not taking `H` and `E` into account (thanks @malaschitz).

### 1.4.0
- Custom move generation and processing (beta):
Expand Down
2 changes: 1 addition & 1 deletion lib/src/variant/options/material_conditions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MaterialConditions<T> {
},
};

MaterialConditions copyWith({
MaterialConditions<T> copyWith({
bool? enabled,
List<T>? soloMaters,
List<T>? pairMaters,
Expand Down
3 changes: 3 additions & 0 deletions lib/src/variant/variants/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class CommonVariants {
'H': PieceType.archbishop(), // hawk
'E': PieceType.chancellor(), // elephant
},
materialConditions: MaterialConditions.standard.copyWith(
soloMaters: ['P', 'Q', 'R', 'E', 'H'],
),
);
}

Expand Down

0 comments on commit 72b6cb1

Please sign in to comment.