Commit 0438756
committed
fix(engine): active_suit matching in all card-matching builtins and discard pile display
- card_matches_top, has_playable_card, played_card_matches_top now check
active_suit string variable when comparing suits (fixes Crazy Eights 8-play)
- Fix suit casing in choose_suit actions: 'Hearts' → 'hearts' (match deck preset)
- Add set_face_up(discard, 0, true) to play_card effects so host shows card face
- Client HandViewer filters null cards from non-owner zones, emphasizes top card
- Host GameTable shows last card (top) instead of first card (bottom) in discard
- Add 3 integration tests for active_suit matching flow1 parent 9cf7312 commit 0438756
5 files changed
Lines changed: 274 additions & 32 deletions
File tree
- packages
- client/src/components
- host/src/screens
- rulesets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
128 | 139 | | |
129 | | - | |
130 | | - | |
| 140 | + | |
| 141 | + | |
131 | 142 | | |
132 | 143 | | |
133 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
| 564 | + | |
563 | 565 | | |
564 | 566 | | |
565 | | - | |
| 567 | + | |
566 | 568 | | |
567 | 569 | | |
568 | 570 | | |
| |||
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
| 585 | + | |
| 586 | + | |
583 | 587 | | |
584 | | - | |
| 588 | + | |
585 | 589 | | |
586 | 590 | | |
587 | 591 | | |
| |||
1327 | 1331 | | |
1328 | 1332 | | |
1329 | 1333 | | |
| 1334 | + | |
| 1335 | + | |
1330 | 1336 | | |
1331 | 1337 | | |
1332 | | - | |
| 1338 | + | |
1333 | 1339 | | |
1334 | 1340 | | |
1335 | 1341 | | |
| |||
0 commit comments