From 64ed4011c4ab00608663f3d23e0974dcf95e3886 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 26 Oct 2024 01:47:19 +0200 Subject: Add a comment --- yahoozy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yahoozy.py b/yahoozy.py index 0fa19c7..f305038 100644 --- a/yahoozy.py +++ b/yahoozy.py @@ -516,7 +516,8 @@ def game_loop(rs: RenderState, body_win) -> None: for i, line in enumerate(leaderboard, 1): body_win.addstr(2 + i, x_off, line) - # Draw the score sheet + # Draw the score sheet. The following code is some absolute + # black-magic stuff. Straight out of Mordor. xtra = 10 if picking_cat else 0 body_win.addstr( 5, 4, @@ -558,7 +559,6 @@ def game_loop(rs: RenderState, body_win) -> None: bar = "─" * (longest_cat_name + 6 + xtra) body_win.addstr(6, 5, bar) body_win.addstr(len(Category) + 7, 5, bar) - body_win.addstr(len(Category) + 8, 5, "Total".ljust(longest_cat_name)) # Align the total with the category scores (which are now shifted -- cgit v1.2.3