All pastes #941040 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-13 13:54 UTC
rendered paste body
*************************************************
---------------------VAR DUMP---------------------
**************************************************
<Player: GufyBot >
Player Name: GufyBot
Is Up
Hand Value:
('Diamonds', 20)
Cards in hand:
Diamonds K
Diamonds 10
Hearts J
Spades Q
Spades:
['<Card: Spades Q>']
Hearts:
['<Card: Hearts J>']
Clubs:
[]
Diamonds:
['<Card: Diamonds K>', '<Card: Diamonds 10>']
Game: 31
Turn: 2
Face card Values:
Suit D
Value 2
Highest and Lowest cards
Highest Card Blank Card
Lowest Card
Blank Card
Highest Suit
Diamonds
Lowest Suit
Hearts
Discard Card
Blank Card
**************************************************
---------------------END DUMP---------------------
**************************************************
Setting lowest card in hand to discard card
Discarding:
Blank Card
Traceback (most recent call last):
  File "./gufygames.py", line 235, in <module>
    main()
  File "./gufygames.py", line 232, in main
    gg.chooseGame(options.g, bot, options.debug)
  File "./gufygames.py", line 184, in chooseGame
    self.newGame(game)
  File "./gufygames.py", line 191, in newGame
    game.loop()
  File "games/_31.py", line 128, in loop
    self.currentPlayer.playTurn()
  File "bots/_31.py", line 134, in playTurn
    self.botDiscard(self.discardCard)
  File "bots/_31.py", line 145, in botDiscard
    self.discard(card)
  File "/Users/novey/Downloads/gufygames-1.0-rc2/gameLib/player.py", line 138, in discard
    self.hand.remove(card)
ValueError: list.remove(x): x not in list