From 104f73d835c2565dfab12b2909bd2ab68c265027 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sun, 22 Apr 2018 17:06:40 +0200 Subject: Reset line before printing lines with dynamic length --- maze_solver.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'maze_solver.rb') diff --git a/maze_solver.rb b/maze_solver.rb index 90af0c1..2f75111 100644 --- a/maze_solver.rb +++ b/maze_solver.rb @@ -31,6 +31,7 @@ class MazeSolver TUI::Cursor.restore puts @maze.to_s(" ", @stack) puts + TUI::Screen.reset_line puts " Stack size: #{@stack.length}" puts " Current algorithm: Depth-first search" end -- cgit v1.1