|
|
@ -38,7 +38,6 @@ class GameBloc extends Bloc<GameEvent, GameState> {
|
|
|
|
if (newBonusLetters.length == bonusWord.length) {
|
|
|
|
if (newBonusLetters.length == bonusWord.length) {
|
|
|
|
emit(
|
|
|
|
emit(
|
|
|
|
state.copyWith(
|
|
|
|
state.copyWith(
|
|
|
|
score: state.score + bonusWordScore,
|
|
|
|
|
|
|
|
activatedBonusLetters: [],
|
|
|
|
activatedBonusLetters: [],
|
|
|
|
bonusHistory: [
|
|
|
|
bonusHistory: [
|
|
|
|
...state.bonusHistory,
|
|
|
|
...state.bonusHistory,
|
|
|
@ -46,6 +45,7 @@ class GameBloc extends Bloc<GameEvent, GameState> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
add(const Scored(points: bonusWordScore));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
emit(
|
|
|
|
emit(
|
|
|
|
state.copyWith(activatedBonusLetters: newBonusLetters),
|
|
|
|
state.copyWith(activatedBonusLetters: newBonusLetters),
|
|
|
|