Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/src/tools/games.py Fri Jan 18 17:55:34 2013 +0100 +++ b/src/tools/games.py Fri Jan 18 17:55:35 2013 +0100 @@ -27,7 +27,7 @@ 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) values_order = map(str,range(1,11))+["valet","cavalier","dame","roi"] -class TarotCard(): +class TarotCard(object): """This class is used to represent a car logically""" #TODO: move this in a library in tools, and share this with frontends (e.g. card_game in wix use the same class)