feat(engine): shuffle booster re-deals the tray
This commit is contained in:
@@ -227,4 +227,13 @@ class GameEngine {
|
||||
_checkStuck();
|
||||
return true;
|
||||
}
|
||||
|
||||
/// Booster: re-deals the tray. No move/score effect. Re-checks stuck so a
|
||||
/// dead board with a hopeless tray can become playable again.
|
||||
bool useShuffle() {
|
||||
if (_phase == GamePhase.won || _phase == GamePhase.lost) return false;
|
||||
_tray = _generator.nextTray(_grid);
|
||||
_checkStuck();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user