Front-End: Player Hand Implementation #20

Closed
opened 2024-12-26 17:27:56 +00:00 by leon-adsk · 0 comments
leon-adsk commented 2024-12-26 17:27:56 +00:00 (Migrated from github.com)
  • The /get-hand api endpoint takes a post request with the playerId and returns that players held pieces, we need a way to display these on the bottom or side of the screen (necessary for e.g. held scrabble pieces).

/get-hand:

{
"playerId": "pxxx"
}
  • We also want to be able to place pieces from the hand via the /play-hand endpoint, this works similarly to the /move endpoint.

/play-hand:

{
"handIdx": int
"toX": int
"toY": int
"playerId": "pxxx"
}
- [x] The /get-hand api endpoint takes a post request with the playerId and returns that players held pieces, we need a way to display these on the bottom or side of the screen (necessary for e.g. held scrabble pieces). /get-hand: ```json { "playerId": "pxxx" } ``` - [x] We also want to be able to place pieces from the hand via the /play-hand endpoint, this works similarly to the /move endpoint. /play-hand: ```json { "handIdx": int "toX": int "toY": int "playerId": "pxxx" } ```
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#20
No description provided.