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

2to3 on pysollib/games/[a-p]*.py

This commit is contained in:
Shlomi Fish 2017-05-17 21:27:04 +03:00
parent fd8a73610c
commit 49ff3488fe
2 changed files with 3 additions and 2 deletions

View file

@ -64,7 +64,8 @@ class PasDeDeux_Hint(AbstractHint):
for r in rows: for r in rows:
r1_d = self.getDistance(r, r.cards[-1]) r1_d = self.getDistance(r, r.cards[-1])
column, row = r.id % 13, r.id / 13 column, row = r.id % 13, r.id / 13
stack_ids = range(column, 52, 13) + range(13*row, 13*row+13) stack_ids = list(range(column, 52, 13)) + \
list(range(13*row, 13*row+13))
for i in stack_ids: for i in stack_ids:
t = self.game.s.rows[i] t = self.game.s.rows[i]
if t is r: if t is r:

View file

@ -574,7 +574,7 @@ registerGame(GameInfo(7, PictureGallery, "Picture Gallery",
altnames=("Die Bildgallerie", "Mod-3"))) altnames=("Die Bildgallerie", "Mod-3")))
registerGame(GameInfo(397, GreatWheel, "Great Wheel", registerGame(GameInfo(397, GreatWheel, "Great Wheel",
GI.GT_2DECK_TYPE, 2, 0, GI.SL_BALANCED, GI.GT_2DECK_TYPE, 2, 0, GI.SL_BALANCED,
ranks=range(12) # without Kings ranks=list(range(12)) # without Kings
)) ))
registerGame(GameInfo(398, MountOlympus, "Mount Olympus", registerGame(GameInfo(398, MountOlympus, "Mount Olympus",
GI.GT_2DECK_TYPE, 2, 0, GI.SL_BALANCED)) GI.GT_2DECK_TYPE, 2, 0, GI.SL_BALANCED))