refactor(games): use ordered setup placements

Convert poker and carcassonne setups to the ordered placement list. Deal the deck/draw first, then move the flop cards and opening tiles out onto their paths.
This commit is contained in:
2026-08-10 11:27:53 +08:00
parent 96c299e498
commit dc721d5c2d
2 changed files with 16 additions and 8 deletions
+8 -4
View File
@@ -222,8 +222,12 @@ id: main
surfaces:
- board#board
setup:
/draw: carcassonne:tile
/grid/5/5: carcassonne:tile#a
/grid/5/6: carcassonne:tile#b
/grid/6/5: carcassonne:tile#c
- path: /draw
parts: carcassonne:tile
- path: /grid/5/5
parts: carcassonne:tile#a
- path: /grid/5/6
parts: carcassonne:tile#b
- path: /grid/6/5
parts: carcassonne:tile#c
```
+8 -4
View File
@@ -133,8 +133,12 @@ role: setup
type: game
id: main
setup:
/deck: poker:card
/community/0: poker:card#as
/community/1: poker:card#kh
/community/2: poker:card#7d
- path: /deck
parts: poker:card
- path: /community/0
parts: poker:card#as
- path: /community/1
parts: poker:card#kh
- path: /community/2
parts: poker:card#7d
```