1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Fix integer division

This commit is contained in:
Roderik Ploszek 2018-04-14 09:07:12 +02:00
parent 3b80878788
commit 3ff3dcf54e
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ class Diplomat(Game):
# create stacks
x, y = l.XM, l.YM
for i in range(8):
s.foundations.append(self.Foundation_Class(x, y, self, suit=i/2))
s.foundations.append(self.Foundation_Class(x, y, self, suit=i//2))
x = x + l.XS
x, y = l.XM, y + l.YS
for i in range(8):

View file

@ -247,7 +247,7 @@ class MissMilligan(Gypsy):
s.talon = self.Talon_Class(x, y, self)
for i in range(8):
x = x + l.XS
s.foundations.append(self.Foundation_Class(x, y, self, suit=i/2))
s.foundations.append(self.Foundation_Class(x, y, self, suit=i//2))
x, y = l.XM, y + l.YS
rx, ry = x + l.XS - l.CW//2, y - l.CH//2
for i in range(reserves):