From d0be5d8ac7ea1da60aad98a3f2b92ff37df4021b Mon Sep 17 00:00:00 2001 From: xereeto Date: Sat, 9 Mar 2024 18:07:00 +0000 Subject: [PATCH] fixed off-by-1 on score report --- wordle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wordle.py b/wordle.py index 2ca39be..133c879 100644 --- a/wordle.py +++ b/wordle.py @@ -61,7 +61,11 @@ class Wordle: placeCursor(9,21) put(reset+str(self.number)) placeCursor(34,21) - put("Turn: "+str(min(self.turn+1,6))+"/6"+colors[0]) + if(self.wonGame()): + t=self.turn + else: + t=self.turn+1 + put("Turn: "+str(min(t,6))+"/6"+colors[0]) def drawKeyboard(self): placeCursor(13,17)