Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validMoves and boardAfter #188

Draft
wants to merge 26 commits into
base: 503-abalone
Choose a base branch
from

Conversation

vincentfrochot
Copy link
Member

No description provided.

@vincentfrochot vincentfrochot changed the title feat: moves of 2 marbles validMoves and boardAfter Oct 23, 2024
- return empty List() instead of None before flattening when we are supposed to
return a List overall
- remove unnecessary use of a List
- use map in case the inner code can only ever return something, e.g. :
  (x) => "a value whatever the value of x"
Also start a refacto of piecesAfterAction - needs more work to be done
- trigger draw by 3fold repetition
- delegate to Move.finalizeAfter all the work except the pieceMap update
  which remain in Variant.boardAfter
- improve Situation.piecesAfterAction codestyle
- Replay.replayMove now works
- remove notion of promotion
- add more unit tests
use match case when working with Option: not using get anymore, when possible
@vincentfrochot vincentfrochot force-pushed the pla-924-sg-variant-tests branch from d18773e to c75eea8 Compare October 29, 2024 14:13
- In case we want Abalone to be a multiaction game, it would already be
ready for trying it out
- Also add a few notes for later
- update piecesAfterAction to fix the bug with side moves and remove
  remaining .get()
- add tests specific to side moves
- adapt package name and imports in test files in order to still be able
to use .pp()
was there for debug purpose
remove Direction from moves creation parameters list in Variant
switch to pair instead of triplet in possibleSideMoves as the direction
is not used anymore later on
@vincentfrochot vincentfrochot force-pushed the pla-924-sg-variant-tests branch from 9b8ccba to 98de331 Compare October 30, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants