aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-26 01:47:19 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-26 01:47:19 +0200
commit64ed4011c4ab00608663f3d23e0974dcf95e3886 (patch)
treed3913b02706870056c9ef422545d98e9fda3c3f1
parent0cb28aa01c480c74fce331fe7e5fd028ca8788cc (diff)
Add a comment
-rw-r--r--yahoozy.py4
1 files 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