We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed96c54 commit 7e9fe73Copy full SHA for 7e9fe73
lib/src/results.dart
@@ -58,14 +58,18 @@ class Results {
58
_positions.removeLast();
59
}
60
61
- int _partialCATScoreCalculator(){
+ int _partialCATScoreCalculator() {
62
int score = 0;
63
- for(int i = 1; i < _commands.length; i++){
+ for (int i = 0; i < _commands.length; i++) {
64
int lineScore = 0;
65
final List<String> tokenized = splitCommand(_commands[i]);
66
switch (tokenized.first) {
67
case "paint":
68
- lineScore = tokenized.length == 2 ? 0 : splitByCurly(tokenized[1]).length == 1 ? 1 : 2;
+ lineScore = tokenized.length == 2
69
+ ? 0
70
+ : splitByCurly(tokenized[1]).length == 1
71
+ ? 1
72
+ : 2;
73
break;
74
case "fill_empty":
75
lineScore = 1;
0 commit comments