diff --git a/lib/Maze.dart b/lib/Maze.dart index 0f1468f..e3ce006 100644 --- a/lib/Maze.dart +++ b/lib/Maze.dart @@ -127,6 +127,8 @@ class gameButtonState extends State { //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); @@ -215,7 +217,6 @@ class gameButtonState extends State { } }); - moves.add(widget.id); recentMove=widget.id; } @override @@ -330,4 +331,4 @@ class _MyHomePageState extends State { ) ); } -} \ No newline at end of file +}