Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
instant play of premoves.
- Promotion state is now lifted up to the parent widget, in order to allow more
control over the promotion dialog.
- Add symmetric piece set (`PieceAssets.symmetric`).
- `ChessboardEditor` now supports highlighting squares.
- Flip `BoardSettings.dragFeedbackOffset.dy` for flipped pieces.
Support displaying all pieces upside down based on side to move.
Expand Down
Binary file added assets/piece_sets/symmetric/2.0x/bB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/bK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/bN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/bP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/bQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/bR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/wB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/wK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/wN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/wP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/wQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/2.0x/wR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/bB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/bK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/bN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/bP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/bQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/bR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/wB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/wK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/wN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/wP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/wQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/3.0x/wR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/4.0x/bB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/piece_sets/symmetric/4.0x/bK.png
Binary file added assets/piece_sets/symmetric/4.0x/bN.png
Binary file added assets/piece_sets/symmetric/4.0x/bP.png
Binary file added assets/piece_sets/symmetric/4.0x/bQ.png
Binary file added assets/piece_sets/symmetric/4.0x/bR.png
Binary file added assets/piece_sets/symmetric/4.0x/wB.png
Binary file added assets/piece_sets/symmetric/4.0x/wK.png
Binary file added assets/piece_sets/symmetric/4.0x/wN.png
Binary file added assets/piece_sets/symmetric/4.0x/wP.png
Binary file added assets/piece_sets/symmetric/4.0x/wQ.png
Binary file added assets/piece_sets/symmetric/4.0x/wR.png
Binary file added assets/piece_sets/symmetric/bB.png
Binary file added assets/piece_sets/symmetric/bK.png
Binary file added assets/piece_sets/symmetric/bN.png
Binary file added assets/piece_sets/symmetric/bP.png
Binary file added assets/piece_sets/symmetric/bQ.png
Binary file added assets/piece_sets/symmetric/bR.png
Binary file added assets/piece_sets/symmetric/wB.png
Binary file added assets/piece_sets/symmetric/wK.png
Binary file added assets/piece_sets/symmetric/wN.png
Binary file added assets/piece_sets/symmetric/wP.png
Binary file added assets/piece_sets/symmetric/wQ.png
Binary file added assets/piece_sets/symmetric/wR.png
31 changes: 30 additions & 1 deletion lib/src/piece_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ enum PieceSet {
horsey('Horsey', PieceSet.horseyAssets),
anarcandy('Anarcandy', PieceSet.anarcandyAssets),
letter('Letter', PieceSet.letterAssets),
disguised('Disguised', PieceSet.disguisedAssets);
disguised('Disguised', PieceSet.disguisedAssets),
symmetric('Symmetric', PieceSet.symmetricAssets);

const PieceSet(this.label, this.assets);

Expand Down Expand Up @@ -1025,4 +1026,32 @@ enum PieceSet {
kWhiteKingKind:
AssetImage('$_pieceSetsPath/tatiana/wK.png', package: 'chessground'),
});

/// The [PieceAssets] for the 'Symmetric' piece set.
static const PieceAssets symmetricAssets = IMapConst({
kBlackRookKind:
AssetImage('$_pieceSetsPath/symmetric/bR.png', package: 'chessground'),
kBlackPawnKind:
AssetImage('$_pieceSetsPath/symmetric/bP.png', package: 'chessground'),
kBlackKnightKind:
AssetImage('$_pieceSetsPath/symmetric/bN.png', package: 'chessground'),
kBlackBishopKind:
AssetImage('$_pieceSetsPath/symmetric/bB.png', package: 'chessground'),
kBlackQueenKind:
AssetImage('$_pieceSetsPath/symmetric/bQ.png', package: 'chessground'),
kBlackKingKind:
AssetImage('$_pieceSetsPath/symmetric/bK.png', package: 'chessground'),
kWhiteRookKind:
AssetImage('$_pieceSetsPath/symmetric/wR.png', package: 'chessground'),
kWhitePawnKind:
AssetImage('$_pieceSetsPath/symmetric/wP.png', package: 'chessground'),
kWhiteKnightKind:
AssetImage('$_pieceSetsPath/symmetric/wN.png', package: 'chessground'),
kWhiteBishopKind:
AssetImage('$_pieceSetsPath/symmetric/wB.png', package: 'chessground'),
kWhiteQueenKind:
AssetImage('$_pieceSetsPath/symmetric/wQ.png', package: 'chessground'),
kWhiteKingKind:
AssetImage('$_pieceSetsPath/symmetric/wK.png', package: 'chessground'),
});
}
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ flutter:
- assets/piece_sets/shapes/
- assets/piece_sets/spatial/
- assets/piece_sets/staunty/
- assets/piece_sets/symmetric/
- assets/piece_sets/tatiana/
- assets/boards/