From 6d9560ad7f3c3f6575ab9bcac885e2e70fcb3bf2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 26 Oct 2024 01:44:22 +0200 Subject: Pass param to ‘enumerate’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yahoozy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yahoozy.py b/yahoozy.py index a1bd837..3ca5af7 100644 --- a/yahoozy.py +++ b/yahoozy.py @@ -513,8 +513,8 @@ def game_loop(rs: RenderState, body_win) -> None: _, x = body_win.getmaxyx() x_off = x - longest - 4 body_win.addstr(2, x_off, THDR, curses.A_BOLD) - for i, line in enumerate(leaderboard): - body_win.addstr(3 + i, x_off, line) + for i, line in enumerate(leaderboard, 1): + body_win.addstr(2 + i, x_off, line) # Draw the score sheet xtra = 10 if picking_cat else 0 @@ -761,8 +761,8 @@ def game_end(rs: RenderState, body_win) -> None: y, x = body_win.getmaxyx() x_off = x - longest - 4 body_win.addstr(2, x_off, FINAL_TITLE, curses.A_BOLD) - for j, line in enumerate(leaderboard): - body_win.addstr(3 + j, x_off, line) + for j, line in enumerate(leaderboard, 1): + body_win.addstr(2 + j, x_off, line) draw_top10(body_win, hist) -- cgit v1.2.3