Commit Graph

221 Commits

Author SHA1 Message Date
Vincent Velociter 065eb4d494 Refactoring 2024-08-02 10:13:43 +02:00
Vincent Velociter 95ff91e03f Wip on removing Box 2024-08-02 09:24:20 +02:00
Vincent Velociter 949408b3f8 Refactor Errors types
Closes #40
2024-08-01 14:48:57 +02:00
Vincent Velociter 6d154d261f Tweak 2024-08-01 13:04:34 +02:00
Vincent Velociter f9b9e0e75a Remove Coord type 2024-08-01 12:35:46 +02:00
Vincent Velociter 48311c5f9a Add Square.fromCoords 2024-08-01 12:33:17 +02:00
Vincent Velociter 7adc5f9889 More refactoring: remove utils 2024-08-01 10:52:16 +02:00
Vincent Velociter 485131f6c0 Tweak API 2024-08-01 10:29:26 +02:00
Vincent Velociter 81690367cb Update Move api 2024-07-31 17:53:33 +02:00
Vincent Velociter 63f2b2bd3e Add file and rank getters to Coord 2024-07-31 12:00:06 +02:00
Vincent Velociter bbcb028131 Add the Coord extension type 2024-07-31 11:32:46 +02:00
Vincent Velociter a971758f19 Tweak offset API 2024-07-31 10:58:31 +02:00
Vincent Velociter e4e4edeb14 Add more tests 2024-07-31 10:31:17 +02:00
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