Skip to content

Commit

Permalink
fix printing the goal message (close #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed May 2, 2023
1 parent e52d6e4 commit efd65df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/maze/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ loop:
maze.Solve()
}
printString(maze.String(format))
if maze.Finished {
printFinished(maze, time.Since(start))
termbox.Flush()
}
continue loop
}
}
Expand Down

0 comments on commit efd65df

Please sign in to comment.