Skip to content

Commit

Permalink
Update MazeTest.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
KhalidIshani authored Feb 9, 2021
1 parent f1c1097 commit 74fd5ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/MazeTest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class gameButtonState extends State<gameButton> {
void resetGame()
{
//reinitialize variables to default
moves = [];
moves2 = [];
correctMoves2 = {};
consecErrors2 = 0;
lastMove = 0; //records last CORRECT move of user
Expand All @@ -160,6 +160,7 @@ class gameButtonState extends State<gameButton> {
//function executed when any button pressed
void buttonPress()
{
moves2.add(widget.id);
times2.add(clock2.elapsedMilliseconds);
//first prevent uesr from making new moves during 250 milisecond animation
timeOut2 = true;
Expand Down Expand Up @@ -250,7 +251,6 @@ class gameButtonState extends State<gameButton> {
}

});
moves2.add(widget.id);
recentMove2=widget.id;
}
@override
Expand Down Expand Up @@ -432,4 +432,4 @@ class _MyHomePageState extends State<MyHomePage> {
}

//width: MediaQuery.of(context).size.width,
//height: MediaQuery.of(context).size.height,
//height: MediaQuery.of(context).size.height,

0 comments on commit 74fd5ba

Please sign in to comment.