Commit Graph

208 Commits

Author SHA1 Message Date
Vincent Velociter 470ef705f0 Use extension types for File, Rank and Square 2024-07-31 10:09:28 +02:00
Vincent Velociter 71a4c16ac2 Remove files and ranks constants 2024-07-30 16:57:51 +02:00
Vincent Velociter 9ee3f608a0 Refactor Square: use an enum 2024-07-30 16:53:33 +02:00
Vincent Velociter 02d77341b5 Add Piece.kind, Role.letter, Role.uppercaseLetter 2024-07-22 12:15:42 +02:00
Vincent Velociter 460fa08ded Migrate SquareSet to an extension type
Closes #37
2024-04-29 18:17:52 +02:00
Vincent Velociter ffa95005ba Add field comment 2023-11-24 17:18:01 +01:00
Vincent Velociter 720128d22e Rename Rules to Rule and add rule getter to Position 2023-11-24 17:13:49 +01:00
Vincent Velociter d4ea728972 Merge pull request #31 from Anupya/Anupya/fix-one-test-pgn-dart
Fix SmartChess test in `pgn_test.dart`
2023-11-16 10:19:12 +01:00
Vincent Velociter c7b5f71662 Twak pgn comment parser 2023-11-13 15:49:06 +01:00
Anupya Pamidimukkala fae5edab89 fix tests 2023-10-27 10:40:50 -04:00
Anupya Pamidimukkala 4480a16a20 fix formatting 2023-10-25 17:17:46 -05:00
Anupya Pamidimukkala c89fad7892 fix one test 2023-10-25 17:12:05 -05:00
Vincent Velociter e50c2a0d2f Add ply getter 2023-10-17 16:25:57 +02:00
Vincent Velociter c86cbfe735 Improve Pgn transform doc 2023-10-17 15:36:56 +02:00
Vincent Velociter bf6119e108 PgnNodeData is no more immutable, PgnComment is now fully 2023-10-17 10:38:46 +02:00
Vincent Velociter 3c390943c4 Update PgnGame doc 2023-10-16 12:56:37 +02:00
Vincent Velociter 283bf12b6d Add a bound to the PgnNode generic type 2023-10-16 12:49:19 +02:00
Vincent Velociter 1fa0ea1fa1 Prepare version 0.3.0 2023-10-14 18:32:21 +02:00
Vincent Velociter 2ef16440f5 Don't mark PgnGame as immutable since it's not 2023-10-14 18:28:21 +02:00
Vincent Velociter de6cfbf8dd Rename Headers to PgnHeaders for consistency 2023-10-14 11:44:16 +02:00
Vincent Velociter b7dddcff86 Add makeSanUnchecked and makeSan methods 2023-10-14 09:42:49 +02:00
Vincent Velociter 524a739a30 Use pattern matching 2023-08-17 15:12:50 +02:00
Vincent Velociter 5bd1829226 Tweaks 2023-06-20 18:14:03 +02:00
Vincent Velociter 057e114e18 Convert Move to a sealed class 2023-05-13 13:41:15 -03:00
Vincent Velociter 4d3548d616 Replace TransformResult with a record 2023-05-13 13:33:55 -03:00
Vincent Velociter 82788ac630 Tweak comment 2023-05-12 11:47:57 -03:00
Vincent Velociter e6c60140dc Update to dart3. Use records instead of Tuple2 2023-05-12 11:40:03 -03:00
Vincent Velociter 0429df6274 Add a doc comment 2023-05-09 11:14:31 -03:00
Vincent Velociter a1a9bc9137 Fix chess960 parse san castling move 2023-05-02 20:58:25 -03:00
nav-28 23a495634e fix unimplemented error to Horde 2023-04-03 14:19:31 -06:00
nav-28 ea6ed8486f fix horde castles 2023-03-26 17:08:24 -06:00
nav-28 db82b9d55c remove black.isEmpty 2023-03-21 18:03:13 -06:00
nav-28 9dc1ecda91 fix perft error 2023-03-20 15:19:21 -06:00
nav-28 d28fef7496 fix king null error in legalMoves 2023-03-17 15:33:05 -06:00
nav-28 ad96cf97c2 add tests 2023-03-17 15:00:39 -06:00
nav-28 9273c03ce0 wip hasSufficientMove 2023-03-17 13:15:17 -06:00
nav-28 88ce0ce47c change Map to IMap 2023-03-17 12:26:44 -06:00
nav-28 80481d341c add hassufficientmove function 2023-03-17 00:04:07 -06:00
nav-28 b417e0410f add position checker 2023-03-16 18:45:56 -06:00
nav-28 f568de869f add horde class and board 2023-03-16 17:16:12 -06:00
Vincent Velociter 759fa93412 Remove redondant arguments 2023-03-13 09:01:01 +01:00
Vincent Velociter 71f95b71f3 Overriding fen is not necessary 2023-03-13 09:00:29 +01:00
Sam Ezeh 068b3e68e9 Use an empty SquareSet and a null en-passent square in the Racing Kings FEN getter 2023-03-12 23:28:05 +00:00
Sam Ezeh cef54ce951 Force Racing Kings castles attribute to be Castles.empty 2023-03-12 16:36:02 +00:00
Sam Ezeh 07884c762e Force Racing Kings castling and en-passent squares to be null 2023-03-12 03:34:41 +00:00
Sam Ezeh b637550c48 kClarify comments on Racing Kings variant outcome crtieria 2023-03-12 03:32:39 +00:00
Sam Ezeh 6e796b1edf Update Racing Kings default setup 2023-03-04 22:30:57 +00:00
Sam Ezeh 288c7b5009 Merge from upstream 2023-03-04 22:14:13 +00:00
Sam Ezeh ab664468a3 Refactor code 2023-03-04 22:14:00 +00:00
Vincent Velociter 87c7af7c07 Use squares names 2023-03-04 16:00:56 +01:00