Skip to content

Commit

Permalink
Update Maze.dart
Browse files Browse the repository at this point in the history
tweaked code so 99 is recorded
  • Loading branch information
KhalidIshani authored Feb 4, 2021
1 parent 7babfc0 commit 5938846
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Maze.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class gameButtonState extends State<gameButton> {
//function executed when any button pressed
void buttonPress()
{
//add button id pressed, regardless of corectness, to list of moves
moves.add(widget.id);
//first prevent uesr from making new moves during 250 milisecond animation
timeOut = true;
times.add(clock.elapsedMilliseconds);
Expand Down Expand Up @@ -215,7 +217,6 @@ class gameButtonState extends State<gameButton> {
}

});
moves.add(widget.id);
recentMove=widget.id;
}
@override
Expand Down Expand Up @@ -330,4 +331,4 @@ class _MyHomePageState extends State<MyHomePage> {
)
);
}
}
}

0 comments on commit 5938846

Please sign in to comment.