diff --git a/lib/game/bloc/game_bloc.dart b/lib/game/bloc/game_bloc.dart index c5cf88d3..79e0e1df 100644 --- a/lib/game/bloc/game_bloc.dart +++ b/lib/game/bloc/game_bloc.dart @@ -7,7 +7,7 @@ part 'game_state.dart'; class GameBloc extends Bloc { GameBloc({ - int bonusLettersCount = 6, + int bonusLettersCount = 'GOOGLE'.length, }) : _bonusLettersCount = bonusLettersCount, super(const GameState.initial()) { on(_onBallLost); @@ -38,7 +38,7 @@ class GameBloc extends Bloc { activatedBonusLetters: [], bonusHistory: [ ...state.bonusHistory, - GameBonus.letterSequence, + GameBonus.word, ], ), ); diff --git a/lib/game/bloc/game_state.dart b/lib/game/bloc/game_state.dart index 3cabcd49..8a35e046 100644 --- a/lib/game/bloc/game_state.dart +++ b/lib/game/bloc/game_state.dart @@ -3,8 +3,8 @@ part of 'game_bloc.dart'; /// Defines bonuses that a player can gain during a PinballGame. enum GameBonus { /// Bonus achieved when the user activate all of the bonus - /// letters on the board - letterSequence, + /// letters on the board, forming the bonus word + word, } /// {@template game_state} diff --git a/test/game/bloc/game_bloc_test.dart b/test/game/bloc/game_bloc_test.dart index cd3fa0cc..f2abc20c 100644 --- a/test/game/bloc/game_bloc_test.dart +++ b/test/game/bloc/game_bloc_test.dart @@ -154,7 +154,7 @@ void main() { score: 0, balls: 3, activatedBonusLetters: [], - bonusHistory: [GameBonus.letterSequence], + bonusHistory: [GameBonus.word], ), ], ); diff --git a/test/game/bloc/game_state_test.dart b/test/game/bloc/game_state_test.dart index 501310c6..7b060984 100644 --- a/test/game/bloc/game_state_test.dart +++ b/test/game/bloc/game_state_test.dart @@ -175,7 +175,7 @@ void main() { score: gameState.score + 1, balls: gameState.balls + 1, activatedBonusLetters: const [0], - bonusHistory: const [GameBonus.letterSequence], + bonusHistory: const [GameBonus.word], ); expect(gameState, isNot(equals(otherGameState)));