fixed off-by-1 on score report

This commit is contained in:
xereeto 2024-03-09 18:07:00 +00:00
parent 9b82335af1
commit d0be5d8ac7
1 changed files with 5 additions and 1 deletions

View File

@ -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)