File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1150,11 +1150,11 @@ class Cube extends Equatable {
1150
1150
1151
1151
static List <Rotation > _findRotation (List <Color > input) {
1152
1152
return [
1153
- for (var i = 4 ; i < 54 ; i += 9 )
1154
- if (input[i] == Color .up && _orientation[0 ][i ~ / 9 ] != null )
1155
- _orientation[0 ][i ~ / 9 ]
1156
- else if (input[i] == Color .right && _orientation[1 ][i ~ / 9 ] != null )
1157
- _orientation[1 ][i ~ / 9 ]
1153
+ for (var i = 4 , k = 0 ; i < 54 ; i += 9 , k ++ )
1154
+ if (input[i] == Color .up && _orientation[0 ][k ] != null )
1155
+ _orientation[0 ][k ]
1156
+ else if (input[i] == Color .right && _orientation[1 ][k ] != null )
1157
+ _orientation[1 ][k ]
1158
1158
];
1159
1159
}
1160
1160
@@ -1251,7 +1251,7 @@ class Cube extends Equatable {
1251
1251
];
1252
1252
}
1253
1253
1254
- /// Generates a SVG image of 3 faces of the [Cube] .
1254
+ /// Generates an SVG image of the [Cube] .
1255
1255
String svg ({
1256
1256
int width = 1024 ,
1257
1257
int height = 1024 ,
You can’t perform that action at this time.
0 commit comments