Bug in belote count
This commit is contained in:
parent
21368da171
commit
ba02632351
2
db.py
2
db.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user