# Path: pyGBot/Plugins/games/fluxxfiles/fluxx.py
# class FluxxCard(Card):
#     def __init__(self, title, short_title, description):
#         Card.__init__(self, title, short_title)
#         self.description = description.strip()
# 
#     def play(self, player):
#         pass
#     
#     def __str__(self):
#         return "%s (%s)" % (self.title, self.short_title)
# 
#     @property
#     def card_info(self):
#         return """
# %s (%s)
# --------------------------------------
# Card Type: %s
# Information: %s
# %s
#         """.strip() % \
#         (self.title, self.short_title, self.type,
#          self.information, "Description: %s" % self.description \
#          if self.description != "" else "")
# 
# Path: pyGBot/Plugins/games/fluxxfiles/goals.py
# class GoalCard(FluxxCard):
#     information = """
# When you play this card, place it face up in the center
# of the table. Discard the previous Goal, if any.
#     """.strip()
#     type = "Goal"
#     def __init__(self, title, short_title, description):
#         FluxxCard.__init__(self, title, short_title, description)
# 
#     def replace_goal(self, new_goal, player):
#         self.owner.game.current_goal = new_goal
#     
#     def check_for_win(self, game):
#         pass
#     
#     def play(self, player):
#         g = player.game
#         player.hand.cards.remove(self)
#         self.owner = g
#         
#         potato = g.deck.find_card("C_RP")
#         if potato.in_play:
#             new = g.prev_player(potato.player)
#             new.keepers.receive(potato)
#             g.output("The Radioactive Potato changed hands from %s to %s!" \
#                      % (old.name, new.name))
#         if g.current_goal is None:
#             g.current_goal = self
#         else:
#             g.current_goal.replace_goal(self, player)


from pyGBot.Plugins.games.fluxxfiles.fluxx import FluxxCard
from pyGBot.Plugins.games.fluxxfiles.goals import GoalCard
from pyGBot.Plugins.games.fluxxfiles.game import pretty_print_list


class RuleCard(FluxxCard):
    information = """
This rule goes into effect as soon as you play it.
Place this card face up in the center of the table.
Discard it when a newer rule contradicts it.
    """.strip()
    type = "Rule"
    def __init__(self, title, short_title, description):

# Path: pyGBot/Plugins/games/fluxxfiles/fluxx.py
# class FluxxCard(Card):
#     def __init__(self, title, short_title, description):
#         Card.__init__(self, title, short_title)
#         self.description = description.strip()
# 
#     def play(self, player):
#         pass
#     
#     def __str__(self):
#         return "%s (%s)" % (self.title, self.short_title)
# 
#     @property
#     def card_info(self):
#         return """
# %s (%s)
# --------------------------------------
# Card Type: %s
# Information: %s
# %s
#         """.strip() % \
#         (self.title, self.short_title, self.type,
#          self.information, "Description: %s" % self.description \
#          if self.description != "" else "")
# 
# Path: pyGBot/Plugins/games/fluxxfiles/goals.py
# class GoalCard(FluxxCard):
#     information = """
# When you play this card, place it face up in the center
# of the table. Discard the previous Goal, if any.
#     """.strip()
#     type = "Goal"
#     def __init__(self, title, short_title, description):
#         FluxxCard.__init__(self, title, short_title, description)
# 
#     def replace_goal(self, new_goal, player):
#         self.owner.game.current_goal = new_goal
#     
#     def check_for_win(self, game):
#         pass
#     
#     def play(self, player):
#         g = player.game
#         player.hand.cards.remove(self)
#         self.owner = g
#         
#         potato = g.deck.find_card("C_RP")
#         if potato.in_play:
#             new = g.prev_player(potato.player)
#             new.keepers.receive(potato)
#             g.output("The Radioactive Potato changed hands from %s to %s!" \
#                      % (old.name, new.name))
#         if g.current_goal is None:
#             g.current_goal = self
#         else:
#             g.current_goal.replace_goal(self, player)


# Path: pyGBot/Plugins/games/fluxxfiles/rules.py
from pyGBot.Plugins.games.fluxxfiles.fluxx import FluxxCard
from pyGBot.Plugins.games.fluxxfiles.goals import GoalCard
from pyGBot.Plugins.games.fluxxfiles.game import pretty_print_list



class RuleCard(FluxxCard):
    information = """
This rule goes into effect as soon as you play it.
Place this card face up in the center of the table.
Discard it when a newer rule contradicts it.
    """.strip()
    type = "Rule"
    def __init__(self, title, short_title, description):

        FluxxCard.__init__(self, title, short_title, description)