Skip to content

Commit 84d8be6

Browse files
committed
Mismatching index
1 parent 410855b commit 84d8be6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/src/models/cross.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class Cross implements BasicShape {
4141
/// Overriding the `==` operator.
4242
@override
4343
bool operator ==(Object other) {
44-
if(other is! Cross){
44+
if (other is! Cross) {
4545
return false;
4646
}
47-
for(int i =0; i< grid.length; i++){
48-
for(int j = 0; i<grid[i].length; j++){
49-
if(validatePosition(i, j)){
50-
if(other.grid[i][j] != grid[i][j]){
47+
for (int i = 0; i < grid.length; i++) {
48+
for (int j = 0; j < grid[i].length; j++) {
49+
if (validatePosition(i, j)) {
50+
if (other.grid[i][j] != grid[i][j]) {
5151
return false;
5252
}
5353
}
@@ -61,8 +61,8 @@ class Cross implements BasicShape {
6161
/// containing the same elements.
6262
@override
6363
Cross copy() => Cross.fromList(
64-
grid.map((List<int> e) => <int>[...e]).toList(),
65-
);
64+
grid.map((List<int> e) => <int>[...e]).toList(),
65+
);
6666

6767
/// It prints the cross
6868
///

0 commit comments

Comments
 (0)