Skip to content

Commit

Permalink
fix(shuffle) : fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanvandeperre97 committed Feb 21, 2022
1 parent 353ee13 commit 7c6494e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bloc/puzzle_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:puzzle/models/models.dart';
import 'package:puzzle/services/audio_service.dart';

class PuzzleCubit extends Cubit<PuzzleState> {
PuzzleCubit() : super(PuzzleState(Puzzle.generate(4)));
PuzzleCubit() : super(PuzzleState(Puzzle.generate(4)..shuffle()));
AudioService audioService = GetIt.I.get<AudioService>();

void shuffle() {
Expand Down
2 changes: 1 addition & 1 deletion lib/models/puzzle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Puzzle {

return Puzzle(
complexity: complexity,
data: data..shuffle(),
data: data,
);
}

Expand Down

0 comments on commit 7c6494e

Please sign in to comment.