small fixes and stoppign for the night, time for a HUGE pull request

This commit is contained in:
James Scott 2012-12-13 23:52:03 -05:00
parent 586a3dbb96
commit db4771bbf3
2 changed files with 3 additions and 4 deletions

3
cah.py
View File

@ -147,8 +147,7 @@ if __name__=="__main__":
round['hands']['Jazz'].showHand()
print "\nBear's hand the hard way:"
for index, card in enumerate(round['hands']['Bear'].card_list):
for index, card in enumerate(game.players['Bear'].card_list):
print '%s: %s' % (index + 1, card.text)

View File

@ -86,7 +86,7 @@ class Cah(callbacks.Plugin):
enumeratedHand = []
cah = self.game
for position, card in enumerate(cah.players[nick].card_list):
enumeratedHand.append("%s: %s" % (position + 1, card.text))
enumeratedHand.append("%s: %s " % (position + 1, ircutils.bold(card.text)))
self._printBlackCard(nick)
self._msg(nick, response % ', '.join(enumeratedHand))
@ -275,7 +275,7 @@ class Cah(callbacks.Plugin):
channel = ircutils.toLower(msg.args[0])
if channel in self.games:
games[channel].close()
del games[channel]
games[channel].pop()
irc.reply("Game stopped.")
else:
irc.reply("Game not running.")