Movement Rules for tiles and pieces #7

Closed
opened 2024-11-26 13:21:26 +00:00 by leon-adsk · 1 comment
leon-adsk commented 2024-11-26 13:21:26 +00:00 (Migrated from github.com)

Last major thing missing now are movement rules for Tile and GamePiece classes

Originally posted by @Zitronekoma30 in #1

Implement simple modular MovementRule class that a developer can inherit from to build modular rules for how pieces can move around the board.
This includes:

  • Position pattern matching: bishop can move diagonally while rook moves only straight
  • Tile / piece blacklist: Certain pieces can only step on certain tiles and vice versa
  • Easy expandability: Developers should be able to add custom movement rules easily (i.e. a rule that only allows movement if some field in the player is > 10)
> Last major thing missing now are movement rules for Tile and GamePiece classes _Originally posted by @Zitronekoma30 in [#1](https://github.com/Zitronekoma30/r2-boardgames-a/issues/1#issuecomment-2495963398)_ Implement simple modular `MovementRule` class that a developer can inherit from to build modular rules for how pieces can move around the board. This includes: - [x] Position pattern matching: bishop can move diagonally while rook moves only straight - [x] Tile / piece blacklist: Certain pieces can only step on certain tiles and vice versa - [x] Easy expandability: Developers should be able to add custom movement rules easily (i.e. a rule that only allows movement if some field in the player is > 10)
leon-adsk commented 2024-12-01 13:01:22 +00:00 (Migrated from github.com)

Not tested extensively, will test more once the front end works until then the issue is closed.

Not tested extensively, will test more once the front end works until then the issue is closed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
leon-adsk/r2-boardgames-a#7
No description provided.