math grid print removed

This commit is contained in:
jaysavsani07
2020-05-22 19:25:50 +05:30
parent 87679fb552
commit 1bcb2cc7e6

View File

@ -64,11 +64,8 @@ class MathGridProvider with ChangeNotifier {
var listOfUnRemovedIndex = _currentState.listForSquare.where((result) => result.isRemoved == false).toList();
if (listOfUnRemovedIndex.length <= 12) {
print("less then 10");
var possiblePairs = getCountOfPossiblePairs(listOfUnRemovedIndex, _currentState.currentAnswer);
print("possible pairs : $possiblePairs");
_index = _index + 1 ;
print("_index + $_index");
_currentState = _list[_index];
}
@ -87,7 +84,7 @@ class MathGridProvider with ChangeNotifier {
for (int i = 0; i < listOfIndex.length; i++) {
total = total + listOfIndex[i].value;
}
print("total $total");
if (_currentState.currentAnswer == total) {
for (int i = 0; i < listOfIndex.length; i++) {
listOfIndex[i].isActive = false;
@ -95,8 +92,8 @@ class MathGridProvider with ChangeNotifier {
}
currentScore = currentScore + ScoreUtil.mathMachineScore;
answerIndex = answerIndex + 1;
print("answer indiex $answerIndex");
print("list of answer legnth ${_currentState.listOfAnswer.length}");
_currentState.currentAnswer = _currentState.listOfAnswer[answerIndex];
}
}