Play Hand API implementation #25

Closed
opened 2025-01-09 10:38:29 +00:00 by leon-adsk · 0 comments
leon-adsk commented 2025-01-09 10:38:29 +00:00 (Migrated from github.com)

We want to be able to play multiple pieces in a single play hand call. Of course a game should be able to limit the amount of pieces a player is allowed to play (0 for chess (no hand), inft for scrabble).

  • Improve backend flexibility for larger play hand calls (@Zitronekoma30)
  • Adjust frontend to record multiple actions and add send/reset move buttons (@AdreasKoessler)

new play hand request structure:

{
"playerId": "pxx"
"moves":[
    {
      "handIdx": 1,
      "toX": 2,
      "toY": 3
    },
    {...},
    ...
  ]
}
We want to be able to play multiple pieces in a single play hand call. Of course a game should be able to limit the amount of pieces a player is allowed to play (0 for chess (no hand), inft for scrabble). - [x] Improve backend flexibility for larger play hand calls (@Zitronekoma30) - [x] Adjust frontend to record multiple actions and add send/reset move buttons (@AdreasKoessler) new play hand request structure: ```json { "playerId": "pxx" "moves":[ { "handIdx": 1, "toX": 2, "toY": 3 }, {...}, ... ] } ```
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#25
No description provided.