Example #1
0
 def func(gameState, actions=actions, cards=cards, money=money, buys=buys, points=points):
     currentPlayer = gameState.players[gameState.currentPlayer]
     currentTurn = currentPlayer.currentTurn
     currentTurn.actions += actions
     currentTurn.buys += buys
     currentTurn.money = utils.addMoney(currentTurn.money, money)
     currentPlayer.draw(cards)
     currentPlayer.points += points
Example #2
0
def sample():
    print player.allCards()
    for a in range(10):
        drawOver()
        printBriefState(player)
    act = buy = 0
    mon = '0'
    for a in range(1000):
        drawOver()
        act += player.currentTurn.actions
        buy += player.currentTurn.buys
        mon = utils.addMoney(mon, player.currentTurn.money)
    print 'avg %d Act %d Buy %s Money' % (act, buy, mon)
Example #3
0
 def func(gameState, actions=actions, cards=cards, money=money, points=points):
     gameState.players[gameState.currentPlayer].actions += actions
     gameState.players[gameState.currentPlayer].draw(cards)
     gameState.players[gameState.currentPlayer].money = \
         utils.addMoney(gameState.players[gameState.currentPlayer].money, money)
     gameState.players[gameState.currentPlayer].points += points