393 Commits

Author SHA1 Message Date
Vincent Velociter 0f00faafe2 Bump version v0.9.1 2024-10-16 10:26:26 +02:00
Vincent Velociter c8c13d0d7f Merge pull request #42 from KMK-Git/pgn-fix-flagbased
Fix PGN test by differentiating single and multigame PGN parsing
2024-10-16 10:20:03 +02:00
Kaustubh Khavnekar b9d3ec7b3c Attach comment to correct testcases 2024-10-14 22:34:36 -04:00
Kaustubh Khavnekar 4d1aa8fd36 Add a comment to describe new testcase 2024-10-14 22:32:39 -04:00
Vincent Velociter c937292c3c Prepare 0.9.0 v0.9.0 2024-10-09 17:56:14 +02:00
Vincent Velociter c1516b33d0 Use an enum for PieceKind 2024-10-09 17:55:17 +02:00
Kaustubh Khavnekar 66361cc5be Fix empty line handling by presplitting multigame PGN 2024-10-07 01:15:30 -04:00
Kaustubh Khavnekar 62c00af044 Remove extra print statement 2024-10-07 00:54:55 -04:00
Kaustubh Khavnekar 331c24b89e Revert "Add flag to indicate whether single game or multi game pgn is being parsed, handle linebreaks accordingly"
This reverts commit db66704b0e.
2024-10-07 00:40:43 -04:00
Kaustubh Khavnekar e97e820f2d Revert "Fix comment"
This reverts commit 80f5af523b.
2024-10-07 00:40:36 -04:00
Kaustubh Khavnekar 03cc1a8a14 Fix for comment at end of line 2024-10-07 00:39:39 -04:00
Kaustubh Khavnekar 80f5af523b Fix comment 2024-10-03 00:16:28 -04:00
Kaustubh Khavnekar db66704b0e Add flag to indicate whether single game or multi game pgn is being parsed, handle linebreaks accordingly 2024-10-02 23:01:52 -04:00
Vincent Velociter 65fad86b26 Update CHANGELOG v0.8.0 2024-08-02 12:16:03 +02:00
Vincent Velociter d50bf0c9f9 Fix isLegal and normalizeMove
Position.isLegal was generating illegal moves from the king due to a bug
in _getCastlingSide.

Fixes #25
Closes #27
2024-08-02 12:09:23 +02:00
Vincent Velociter cf51fcb1e1 Don't check models file format 2024-08-02 11:16:49 +02:00
Vincent Velociter a9d42cbade Document legalMoves castling format
Re-introduce `makeLegalMoves` to export legal moves in a convenient
format.

Closes #33
2024-08-02 11:10:33 +02:00
Vincent Velociter 05af18077d Add more san disambiguation tests 2024-08-02 10:39:30 +02:00
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 8577e982c7 Merge pull request #41 from lichess-org/square_extension_type
Square extension type
2024-08-01 14:15:58 +02:00
Vincent Velociter 2d0be94fea Prepare version 0.8.0 2024-08-01 13:10:48 +02:00
Vincent Velociter 059b916948 Restore attacks test 2024-08-01 13:07:35 +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 0eb1172004 Add more tests 2024-07-31 11:00:50 +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 v0.7.1 2024-07-22 12:15:42 +02:00
Vincent Velociter 3e454c3070 Bump version v0.7.0 2024-04-29 18:38:18 +02:00
Vincent Velociter d932c9f8cb Merge pull request #39 from lichess-org/extension_type
Migrate SquareSet to an extension type
2024-04-29 18:35:27 +02:00
Vincent Velociter 460fa08ded Migrate SquareSet to an extension type
Closes #37
2024-04-29 18:17:52 +02:00
Vincent Velociter 387be73d9b Merge pull request #36 from lichess-org/dependabot/github_actions/ci-dependencies-580839582e 2024-03-30 08:16:24 +01:00
dependabot[bot] f84f14b051 Bump the ci-dependencies group with 2 updates
Bumps the ci-dependencies group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart).


Updates `actions/checkout` from 2 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

Updates `dart-lang/setup-dart` from 1.3 to 1.4
- [Release notes](https://github.com/dart-lang/setup-dart/releases)
- [Changelog](https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/setup-dart/compare/v1.3...v1.4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: ci-dependencies
- dependency-name: dart-lang/setup-dart
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ci-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-29 20:45:01 +00:00
Vincent Velociter 102c65efa9 Merge pull request #35 from stscoundrel/dependabot-ci-updates 2024-03-29 21:44:39 +01:00
Sampo Silvennoinen d26e9edde2 Add Dependabot updates to Github Actions dependencies
Automatically create update PR for Github Actions workflows, like actions/checkout or actions/setup-dart.

To avoid update spam, only updates them once a month & groups the updates into one pull request. Simply stops the actions versions from growing old.

There already are some older action versions in use, causing warnings in CI runs like:

"Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20"
2024-03-29 10:27:03 +02:00
Vincent Velociter ed22e2ee2d Merge pull request #34 from stscoundrel/main 2024-03-29 09:06:51 +01:00
Sampo Silvennoinen ee64f248b4 Attacks: add unit tests for legal attack positions 2024-03-28 19:28:00 +02:00
Sampo Silvennoinen c635a23d7b Attacks: add unit tests for surrounded cases 2024-03-28 19:28:00 +02:00
Sampo Silvennoinen 3198d75c80 Attacks: add unit tests for near edge of board 2024-03-28 19:28:00 +02:00