HINTS = {
- ACT: "Choose an action using the Up/Down keys.\n"
- "Press Return to execute the action.",
- EXAMINE: "Select a card to examine using the arrow keys."
- }
+ ACT: ("Choose an action using the Up/Down keys.\n"
+ "Press Return to execute the action."),
+ EXAMINE: "Select a card to examine using the arrow keys.",
+}
HINT_LEGAL_MOVE = "\nPress Return to move to this card."
TITLES = {
- ACT: "Choose an Action",
- EXAMINE: "Select a Card",
- }
+ ACT: "Choose an Action",
+ EXAMINE: "Select a Card",
+}
class InfoAreaWidget(Widget):
player = self.state.player
action = self.card.actions[self.chosen]
if not action.check_available(player):
+ sound.play_sound('error.ogg')
print "BEEP!"
else:
action.perform_action(self.state.gameboard, self.card)