mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
2to3 on pysollib/games/special/*.py
This commit is contained in:
parent
4d963e3f59
commit
54946fabca
5 changed files with 13 additions and 13 deletions
|
@ -20,11 +20,11 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# ---------------------------------------------------------------------------##
|
||||
import hanoi
|
||||
import memory
|
||||
import pegged
|
||||
import poker
|
||||
import tarock
|
||||
from . import hanoi
|
||||
from . import memory
|
||||
from . import pegged
|
||||
from . import poker
|
||||
from . import tarock
|
||||
|
||||
def no_use():
|
||||
pass
|
||||
|
|
|
@ -157,19 +157,19 @@ class HanoiSequence(TowerOfHanoy):
|
|||
# register the game
|
||||
registerGame(GameInfo(124, TowerOfHanoy, "Tower of Hanoy",
|
||||
GI.GT_PUZZLE_TYPE, 1, 0, GI.SL_SKILL,
|
||||
suits=(2,), ranks=range(9)))
|
||||
suits=(2,), ranks=list(range(9))))
|
||||
registerGame(GameInfo(207, HanoiPuzzle4, "Hanoi Puzzle 4",
|
||||
GI.GT_PUZZLE_TYPE, 1, 0, GI.SL_SKILL,
|
||||
suits=(2,), ranks=range(4),
|
||||
suits=(2,), ranks=list(range(4)),
|
||||
rules_filename="hanoipuzzle.html"))
|
||||
registerGame(GameInfo(208, HanoiPuzzle5, "Hanoi Puzzle 5",
|
||||
GI.GT_PUZZLE_TYPE, 1, 0, GI.SL_SKILL,
|
||||
suits=(2,), ranks=range(5),
|
||||
suits=(2,), ranks=list(range(5)),
|
||||
rules_filename="hanoipuzzle.html"))
|
||||
registerGame(GameInfo(209, HanoiPuzzle6, "Hanoi Puzzle 6",
|
||||
GI.GT_PUZZLE_TYPE, 1, 0, GI.SL_SKILL,
|
||||
suits=(2,), ranks=range(6),
|
||||
suits=(2,), ranks=list(range(6)),
|
||||
rules_filename="hanoipuzzle.html"))
|
||||
registerGame(GameInfo(769, HanoiSequence, "Hanoi Sequence",
|
||||
GI.GT_PUZZLE_TYPE, 1, 0, GI.SL_SKILL,
|
||||
suits=(2,), ranks=range(9)))
|
||||
suits=(2,), ranks=list(range(9))))
|
||||
|
|
|
@ -259,7 +259,7 @@ def r(id, gameclass, name):
|
|||
gi = GameInfo(id, gameclass, name,
|
||||
GI.GT_PUZZLE_TYPE, 1, 0, GI.SL_SKILL,
|
||||
category=GI.GC_TRUMP_ONLY,
|
||||
suits=(), ranks=(), trumps=range(ncards),
|
||||
suits=(), ranks=(), trumps=list(range(ncards)),
|
||||
si={"decks": 1, "ncards": ncards},
|
||||
rules_filename="pegged.html")
|
||||
registerGame(gi)
|
||||
|
|
|
@ -145,7 +145,7 @@ One Pair'''))
|
|||
(r[3], r[3+5], r[3+10], r[3+15], r[3+20]),
|
||||
(r[4], r[4+5], r[4+10], r[4+15], r[4+20]),
|
||||
]
|
||||
self.poker_hands = map(tuple, self.poker_hands)
|
||||
self.poker_hands = list(map(tuple, self.poker_hands))
|
||||
|
||||
# define stack-groups
|
||||
l.defaultStackGroups()
|
||||
|
|
|
@ -932,7 +932,7 @@ class Nasty(Wicked):
|
|||
def r(id, gameclass, name, game_type, decks, redeals, skill_level):
|
||||
game_type = game_type | GI.GT_TAROCK | GI.GT_CONTRIB | GI.GT_ORIGINAL
|
||||
gi = GameInfo(id, gameclass, name, game_type, decks, redeals, skill_level,
|
||||
ranks=range(14), trumps=range(22))
|
||||
ranks=list(range(14)), trumps=list(range(22)))
|
||||
registerGame(gi)
|
||||
return gi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue