Bug in belote count

This commit is contained in:
Léo 2020-05-09 22:17:10 +02:00
parent 21368da171
commit ba02632351

2
db.py
View File

@ -275,8 +275,10 @@ class Game(db.Model):
if (cccc.index('D'+self.atout) + winnr)%4 == belote %4: if (cccc.index('D'+self.atout) + winnr)%4 == belote %4:
if belote %2 ==0: if belote %2 ==0:
self.points_0 += 20 self.points_0 += 20
belote_0 = 20
else: else:
self.points_1 += 20 self.points_1 += 20
belote_1 = 20
else: else:
belote = winnr + cccc.index('D'+self.atout) belote = winnr + cccc.index('D'+self.atout)
win, xxx = winner(cccc, self.atout) win, xxx = winner(cccc, self.atout)