diff --git a/CHANGELOG.md b/CHANGELOG.md index 255d7d60..962b20b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/assets/piece_sets/symmetric/2.0x/bB.png b/assets/piece_sets/symmetric/2.0x/bB.png new file mode 100644 index 00000000..6e01d6a6 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/bB.png differ diff --git a/assets/piece_sets/symmetric/2.0x/bK.png b/assets/piece_sets/symmetric/2.0x/bK.png new file mode 100644 index 00000000..71e14f61 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/bK.png differ diff --git a/assets/piece_sets/symmetric/2.0x/bN.png b/assets/piece_sets/symmetric/2.0x/bN.png new file mode 100644 index 00000000..4c61d5fd Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/bN.png differ diff --git a/assets/piece_sets/symmetric/2.0x/bP.png b/assets/piece_sets/symmetric/2.0x/bP.png new file mode 100644 index 00000000..5a5954f2 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/bP.png differ diff --git a/assets/piece_sets/symmetric/2.0x/bQ.png b/assets/piece_sets/symmetric/2.0x/bQ.png new file mode 100644 index 00000000..fbb8efe4 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/bQ.png differ diff --git a/assets/piece_sets/symmetric/2.0x/bR.png b/assets/piece_sets/symmetric/2.0x/bR.png new file mode 100644 index 00000000..b5cf39ad Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/bR.png differ diff --git a/assets/piece_sets/symmetric/2.0x/wB.png b/assets/piece_sets/symmetric/2.0x/wB.png new file mode 100644 index 00000000..78663da5 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/wB.png differ diff --git a/assets/piece_sets/symmetric/2.0x/wK.png b/assets/piece_sets/symmetric/2.0x/wK.png new file mode 100644 index 00000000..c7fa9a62 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/wK.png differ diff --git a/assets/piece_sets/symmetric/2.0x/wN.png b/assets/piece_sets/symmetric/2.0x/wN.png new file mode 100644 index 00000000..b3986135 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/wN.png differ diff --git a/assets/piece_sets/symmetric/2.0x/wP.png b/assets/piece_sets/symmetric/2.0x/wP.png new file mode 100644 index 00000000..7d8d67cc Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/wP.png differ diff --git a/assets/piece_sets/symmetric/2.0x/wQ.png b/assets/piece_sets/symmetric/2.0x/wQ.png new file mode 100644 index 00000000..d812267a Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/wQ.png differ diff --git a/assets/piece_sets/symmetric/2.0x/wR.png b/assets/piece_sets/symmetric/2.0x/wR.png new file mode 100644 index 00000000..36b45e10 Binary files /dev/null and b/assets/piece_sets/symmetric/2.0x/wR.png differ diff --git a/assets/piece_sets/symmetric/3.0x/bB.png b/assets/piece_sets/symmetric/3.0x/bB.png new file mode 100644 index 00000000..01b10581 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/bB.png differ diff --git a/assets/piece_sets/symmetric/3.0x/bK.png b/assets/piece_sets/symmetric/3.0x/bK.png new file mode 100644 index 00000000..93bbfcdc Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/bK.png differ diff --git a/assets/piece_sets/symmetric/3.0x/bN.png b/assets/piece_sets/symmetric/3.0x/bN.png new file mode 100644 index 00000000..9dc53781 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/bN.png differ diff --git a/assets/piece_sets/symmetric/3.0x/bP.png b/assets/piece_sets/symmetric/3.0x/bP.png new file mode 100644 index 00000000..08f80030 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/bP.png differ diff --git a/assets/piece_sets/symmetric/3.0x/bQ.png b/assets/piece_sets/symmetric/3.0x/bQ.png new file mode 100644 index 00000000..f5c7aa64 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/bQ.png differ diff --git a/assets/piece_sets/symmetric/3.0x/bR.png b/assets/piece_sets/symmetric/3.0x/bR.png new file mode 100644 index 00000000..3164a0bd Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/bR.png differ diff --git a/assets/piece_sets/symmetric/3.0x/wB.png b/assets/piece_sets/symmetric/3.0x/wB.png new file mode 100644 index 00000000..bd871b9e Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/wB.png differ diff --git a/assets/piece_sets/symmetric/3.0x/wK.png b/assets/piece_sets/symmetric/3.0x/wK.png new file mode 100644 index 00000000..c555ffe6 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/wK.png differ diff --git a/assets/piece_sets/symmetric/3.0x/wN.png b/assets/piece_sets/symmetric/3.0x/wN.png new file mode 100644 index 00000000..22bc8576 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/wN.png differ diff --git a/assets/piece_sets/symmetric/3.0x/wP.png b/assets/piece_sets/symmetric/3.0x/wP.png new file mode 100644 index 00000000..f7c62ac6 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/wP.png differ diff --git a/assets/piece_sets/symmetric/3.0x/wQ.png b/assets/piece_sets/symmetric/3.0x/wQ.png new file mode 100644 index 00000000..f08b5b84 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/wQ.png differ diff --git a/assets/piece_sets/symmetric/3.0x/wR.png b/assets/piece_sets/symmetric/3.0x/wR.png new file mode 100644 index 00000000..0fb2db07 Binary files /dev/null and b/assets/piece_sets/symmetric/3.0x/wR.png differ diff --git a/assets/piece_sets/symmetric/4.0x/bB.png b/assets/piece_sets/symmetric/4.0x/bB.png new file mode 100644 index 00000000..78706e14 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/bB.png differ diff --git a/assets/piece_sets/symmetric/4.0x/bK.png b/assets/piece_sets/symmetric/4.0x/bK.png new file mode 100644 index 00000000..d6485542 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/bK.png differ diff --git a/assets/piece_sets/symmetric/4.0x/bN.png b/assets/piece_sets/symmetric/4.0x/bN.png new file mode 100644 index 00000000..5d4ad6f0 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/bN.png differ diff --git a/assets/piece_sets/symmetric/4.0x/bP.png b/assets/piece_sets/symmetric/4.0x/bP.png new file mode 100644 index 00000000..94c37bf5 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/bP.png differ diff --git a/assets/piece_sets/symmetric/4.0x/bQ.png b/assets/piece_sets/symmetric/4.0x/bQ.png new file mode 100644 index 00000000..78600bc5 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/bQ.png differ diff --git a/assets/piece_sets/symmetric/4.0x/bR.png b/assets/piece_sets/symmetric/4.0x/bR.png new file mode 100644 index 00000000..9c701f0d Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/bR.png differ diff --git a/assets/piece_sets/symmetric/4.0x/wB.png b/assets/piece_sets/symmetric/4.0x/wB.png new file mode 100644 index 00000000..e6aa9023 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/wB.png differ diff --git a/assets/piece_sets/symmetric/4.0x/wK.png b/assets/piece_sets/symmetric/4.0x/wK.png new file mode 100644 index 00000000..776648a1 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/wK.png differ diff --git a/assets/piece_sets/symmetric/4.0x/wN.png b/assets/piece_sets/symmetric/4.0x/wN.png new file mode 100644 index 00000000..b51be8e8 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/wN.png differ diff --git a/assets/piece_sets/symmetric/4.0x/wP.png b/assets/piece_sets/symmetric/4.0x/wP.png new file mode 100644 index 00000000..852c5ddd Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/wP.png differ diff --git a/assets/piece_sets/symmetric/4.0x/wQ.png b/assets/piece_sets/symmetric/4.0x/wQ.png new file mode 100644 index 00000000..8a56a54e Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/wQ.png differ diff --git a/assets/piece_sets/symmetric/4.0x/wR.png b/assets/piece_sets/symmetric/4.0x/wR.png new file mode 100644 index 00000000..8df2a197 Binary files /dev/null and b/assets/piece_sets/symmetric/4.0x/wR.png differ diff --git a/assets/piece_sets/symmetric/bB.png b/assets/piece_sets/symmetric/bB.png new file mode 100644 index 00000000..1e729279 Binary files /dev/null and b/assets/piece_sets/symmetric/bB.png differ diff --git a/assets/piece_sets/symmetric/bK.png b/assets/piece_sets/symmetric/bK.png new file mode 100644 index 00000000..e197d83c Binary files /dev/null and b/assets/piece_sets/symmetric/bK.png differ diff --git a/assets/piece_sets/symmetric/bN.png b/assets/piece_sets/symmetric/bN.png new file mode 100644 index 00000000..42386154 Binary files /dev/null and b/assets/piece_sets/symmetric/bN.png differ diff --git a/assets/piece_sets/symmetric/bP.png b/assets/piece_sets/symmetric/bP.png new file mode 100644 index 00000000..e08f3dc1 Binary files /dev/null and b/assets/piece_sets/symmetric/bP.png differ diff --git a/assets/piece_sets/symmetric/bQ.png b/assets/piece_sets/symmetric/bQ.png new file mode 100644 index 00000000..420b820a Binary files /dev/null and b/assets/piece_sets/symmetric/bQ.png differ diff --git a/assets/piece_sets/symmetric/bR.png b/assets/piece_sets/symmetric/bR.png new file mode 100644 index 00000000..f81e3c2f Binary files /dev/null and b/assets/piece_sets/symmetric/bR.png differ diff --git a/assets/piece_sets/symmetric/wB.png b/assets/piece_sets/symmetric/wB.png new file mode 100644 index 00000000..7cbf61e3 Binary files /dev/null and b/assets/piece_sets/symmetric/wB.png differ diff --git a/assets/piece_sets/symmetric/wK.png b/assets/piece_sets/symmetric/wK.png new file mode 100644 index 00000000..63fc740c Binary files /dev/null and b/assets/piece_sets/symmetric/wK.png differ diff --git a/assets/piece_sets/symmetric/wN.png b/assets/piece_sets/symmetric/wN.png new file mode 100644 index 00000000..e274d6b0 Binary files /dev/null and b/assets/piece_sets/symmetric/wN.png differ diff --git a/assets/piece_sets/symmetric/wP.png b/assets/piece_sets/symmetric/wP.png new file mode 100644 index 00000000..285f80e3 Binary files /dev/null and b/assets/piece_sets/symmetric/wP.png differ diff --git a/assets/piece_sets/symmetric/wQ.png b/assets/piece_sets/symmetric/wQ.png new file mode 100644 index 00000000..7505a752 Binary files /dev/null and b/assets/piece_sets/symmetric/wQ.png differ diff --git a/assets/piece_sets/symmetric/wR.png b/assets/piece_sets/symmetric/wR.png new file mode 100644 index 00000000..78cbc0e5 Binary files /dev/null and b/assets/piece_sets/symmetric/wR.png differ diff --git a/lib/src/piece_set.dart b/lib/src/piece_set.dart index c8bc60be..fdb7b54a 100644 --- a/lib/src/piece_set.dart +++ b/lib/src/piece_set.dart @@ -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); @@ -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'), + }); } diff --git a/pubspec.yaml b/pubspec.yaml index 98353a58..bd55a388 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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/