From 4dcb55ab4e6d87a295eacefa35e1d3793204d7be Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Fri, 6 Dec 2024 02:09:01 -0700 Subject: [PATCH] Improve d6p2 progress status --- day6/part2.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day6/part2.kts b/day6/part2.kts index 6603afd..c5a288a 100755 --- a/day6/part2.kts +++ b/day6/part2.kts @@ -100,14 +100,14 @@ originalGrid.forEachIndexed rowLoop@{ i, row -> print( // Clear line - "\r " + + " " + // Print status "\rChecked row ${ i.toString().padStart(3, ' ') } column ${j.toString().padStart(3, ' ')} (${ (((i * row.size + j + 1) * 100) / (originalGrid.size * originalGrid[0].size)).toString() .padStart(3, ' ') - }%)" + }%)\r" ) } }