def __init__(self): from pyGBot.Plugins.games.fluxxfiles.deck import FluxxDeck self.started = False self.finished = False self.debug = False self.deck = FluxxDeck() self.rule_pile = RulePile(self) self.draw_discard = DrawDiscard(self) self.players = [] self.turn = 0 self.current_goal = None self.game = self self.reverse_played = False self.another_turn_played = False
import re from pyGBot import log from pyGBot.BasePlugin import BasePlugin from pyGBot.Plugins.games.fluxxfiles.fluxx import FluxxPlayer, FluxxGame from pyGBot.Plugins.games.fluxxfiles.game import pretty_print_list, pp_index from pyGBot.Plugins.games.fluxxfiles.deck import FluxxDeck # IRC formatting BOLD = '\x02' # Bold UNDERLINE = '\x1F' # Underline REV_VIDEO = '\x16' # Reverse Video # Used for looking up card descriptions. dummy_deck = FluxxDeck() YES_NO_RESPONSE = '(yes|true|no|false|0|1)' class FluxxIRCGame(FluxxGame): def post_deal_hook(self): for p in self.players: p.output("You got: %s" % pp_index(p.hand)) class FluxxIRCUser(FluxxPlayer): _halt_game = None def __init__(self, name, plugin):