From 59388460e231d3da3be11f7064a02e22a5b551f5 Mon Sep 17 00:00:00 2001 From: KhalidIshani Date: Wed, 3 Feb 2021 19:32:19 -0600 Subject: [PATCH] Update Maze.dart tweaked code so 99 is recorded --- lib/Maze.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +}