| |
- Card
- Deck
- Game
- Player
class Game |
| |
Methods defined here:
- __init__(self, deck=None, playergroup=None, observergroup=None, gametype=None)
- #defines a game
- addplayer(self, player)
- addplayers(self, players)
- cleardeck(self)
- cleargametype(self)
- clearplayers(self)
- countplayers(self)
- deal(self, toeach)
- getdeck(self)
- getgametype(self)
- getplayerat(self, at)
- getplayers(self)
- observe(self)
- play(self)
- removeplayer(self, player)
- removeplayerat(self, at)
- removeplayers(self, players)
- setdeck(self, deck=None)
- setgametype(self, gametype=None)
- setplayers(self, playergroup=None)
|
class Player |
| |
Methods defined here:
- __init__(self, game=None, hand=None, name='', observer=False)
- #defines a player
- __str__(self)
- acceptcard(self, card)
- acceptcards(self, cards)
- addcard(self, card)
- addcards(self, cards)
- clearhand(self)
- drawcard(self)
- drawcards(self, count)
- drawrandomcard(self)
- drawrandomcards(self, count)
- getgame(self)
- gethand(self)
- getname(self)
- isobserver(self)
- observe(self)
- play(self)
- removecard(self, card)
- removecards(self, cards)
- setgame(self, game)
- sethand(self, hand=[])
- setname(self, name)
- setobserver(self, observer=False)
| |