Place pieces on the board #46

Merged
tonitch merged 4 commits from pieceInteraction into master 2023-05-11 20:09:24 +02:00
Owner

Terminer #45 Avant de commencer celui-ci!

Terminer #45 Avant de commencer celui-ci!
tonitch added 5 commits 2023-05-10 23:05:56 +02:00
limit piece matrix to their minimum size
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
90d6d47cc8
When a piece is placed at a position, check if this space is placable and place it there.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
4f821b44bc
tonitch added 1 commit 2023-05-11 11:37:36 +02:00
Piece overlap detection
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
334e0ad99b
there is 3 addition:
- `ArrayList getOccupation()` to get a list of all spot occupied by a piece
- Fixing a bug to rotate right where width and height where inverted
- Check if a piece is overlapping another when placing and refusing the
  placement if so
tonitch changed title from WIP: Place pieces on the board to Place pieces on the board 2023-05-11 11:38:42 +02:00
Author
Owner

This branch is finished, I will now work on the drawing of placed piece on the board and the game should be playable at this point!

Don't forget to check #45 before!

This branch is finished, I will now work on the drawing of placed piece on the board and the game should be playable at this point! Don't forget to check #45 before!
tonitch requested review from Mat_02 2023-05-11 11:40:00 +02:00
tonitch added 1 commit 2023-05-11 11:47:35 +02:00
leaving debug printing and reseting piece position if not placed
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
0f1ecc753b
Mat_02 approved these changes 2023-05-11 16:19:37 +02:00
tonitch merged commit d389b22f2d into master 2023-05-11 20:09:24 +02:00
tonitch deleted branch pieceInteraction 2023-05-11 20:09:24 +02:00
Sign in to join this conversation.
No description provided.