small fixes and stoppign for the night, time for a HUGE pull request
This commit is contained in:
parent
586a3dbb96
commit
db4771bbf3
3
cah.py
3
cah.py
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue