Skip to content

Commit

Permalink
Deserialize the board correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Jan 3, 2021
1 parent cac954d commit 87b94f4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/data/board.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,8 @@ class BoardDeserializableFactory extends DeserializableHelper<Board> {
return null;
}

const pointFactory = PointDeserializableFactory();
const chipFactory = ChipDeserializableFactory();

final blank = input.readDeserializable(pointFactory);
if (blank == null) {
return null;
}

final chips = List<Chip>();
for (var i = 0; i < size * size; i++) {
final chip = input.readDeserializable(chipFactory);
Expand Down

0 comments on commit 87b94f4

Please sign in to comment.