Commit ca9a13b
committed
Refine reset logic in Playground class
Introduce a check for `AvailableShapes` to determine if the game uses only colors or both colors and shapes. If `AvailableShapes` is null or empty, reset only the color of the selected field. If both color and shape are set, reset both. Ensure the selected field is marked and `_selectable` is set to true.1 parent 2be1390 commit ca9a13b
1 file changed
Lines changed: 10 additions & 2 deletions
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| 139 | + | |
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
| |||
0 commit comments