Mercurial > libervia-backend
comparison frontends/wix/card_game.py @ 94:1eb5ccead43c
Tarot game: basic trick
- plugin tarot: it's now possible to make a basic game until the end \o/. Score are calculated but not sent to players yet.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 Jun 2010 18:16:15 +0930 |
parents | 2f87651a5ad8 |
children | be206a3d1a9b |
comparison
equal
deleted
inserted
replaced
93:2f87651a5ad8 | 94:1eb5ccead43c |
---|---|
31 CARD_WIDTH = 74 | 31 CARD_WIDTH = 74 |
32 CARD_HEIGHT = 136 | 32 CARD_HEIGHT = 136 |
33 MIN_WIDTH = 950 #Minimum size of the panel | 33 MIN_WIDTH = 950 #Minimum size of the panel |
34 MIN_HEIGHT = 500 | 34 MIN_HEIGHT = 500 |
35 | 35 |
36 suits_order = ['pique', 'coeur', 'trefle', 'carreau', 'atout'] #I have swith the usual order 'trefle' and 'carreau' because card are more easy to see if couleur change (black, red, black, red) | 36 suits_order = ['pique', 'coeur', 'trefle', 'carreau', 'atout'] #I have swith the usual order 'trefle' and 'carreau' because card are more easy to see if suit colour change (black, red, black, red) |
37 values_order = map(str,range(1,11))+["valet","cavalier","dame","roi"] | 37 values_order = map(str,range(1,11))+["valet","cavalier","dame","roi"] |
38 | 38 |
39 class Card(): | 39 class Card(): |
40 """This class is used to represent a card, graphically and logically""" | 40 """This class is used to represent a card, graphically and logically""" |
41 | 41 |