comparison src/tools/games.py @ 588:beaf6bec2fcd

Remove every old-style class.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:35 +0100
parents 952322b1d490
children 56531f9e9ac7
comparison
equal deleted inserted replaced
587:952322b1d490 588:beaf6bec2fcd
25 25
26 26
27 suits_order = ['pique', 'coeur', 'trefle', 'carreau', 'atout'] #I have switched the usual order 'trefle' and 'carreau' because card are more easy to see if suit colour change (black, red, black, red) 27 suits_order = ['pique', 'coeur', 'trefle', 'carreau', 'atout'] #I have switched the usual order 'trefle' and 'carreau' because card are more easy to see if suit colour change (black, red, black, red)
28 values_order = map(str,range(1,11))+["valet","cavalier","dame","roi"] 28 values_order = map(str,range(1,11))+["valet","cavalier","dame","roi"]
29 29
30 class TarotCard(): 30 class TarotCard(object):
31 """This class is used to represent a car logically""" 31 """This class is used to represent a car logically"""
32 #TODO: move this in a library in tools, and share this with frontends (e.g. card_game in wix use the same class) 32 #TODO: move this in a library in tools, and share this with frontends (e.g. card_game in wix use the same class)
33 33
34 def __init__(self, tuple_card): 34 def __init__(self, tuple_card):
35 """@param tuple_card: tuple (suit, value)""" 35 """@param tuple_card: tuple (suit, value)"""