fix finish bug in myrummy

This commit is contained in:
2026-08-23 13:10:57 +02:00
parent 2dfdf54d42
commit 54958e79e7
+5 -1
View File
@@ -139,7 +139,11 @@ class Game:
elif cmd=='d':self.draw() elif cmd=='d':self.draw()
elif cmd=='u':self.undo() elif cmd=='u':self.undo()
elif cmd=='sort':self.p.hand=sort_hand(self.p.hand) elif cmd=='sort':self.p.hand=sort_hand(self.p.hand)
elif cmd=='finish':return self.finish() elif cmd=='finish':
before=self.turn
r=self.finish()
if not r and self.turn==before: input('\nENTER...')
return r
elif cmd in ('q','quit','exit'):raise SystemExit elif cmd in ('q','quit','exit'):raise SystemExit
elif cmd=='show':pass elif cmd=='show':pass
else: raise ValueError('Unbekannter Befehl.') else: raise ValueError('Unbekannter Befehl.')