Exemple #1
0
def initBot():
    ''' where we get the game ready '''
    global supplyCards, supplyAmounts, gAlpha, gEpsilon
    random.seed(19)
    p1 = player_format.playerStats(1, 1, 0, 3)  # Easy 3 vp for starting
    supplyCards = card_format.kingdomCards()
    supplyAmounts = card_format.kingdomCardValues(supplyCards)
    cards = card_format.startingCards()
    hand, deck, discard, play = firstHand(cards)
    # 100/1000 = 0.1, the value we want for epsilon
    gEpsilon = 100
    gAlpha = 0.75
    return hand, deck, discard, play, p1
Exemple #2
0
def env_init():
    global gStartPosition, p1, supplyCards, supplyAmounts, totalDeckLists
    p1 = player_format.playerStats(1, 1, 0, 3)  # Easy 3 vp for starting
    totalDeckLists = list()
    supplyCards = card_format.kingdomCards()
    supplyAmounts = card_format.kingdomCardValues(supplyCards)
    cards = card_format.startingCards()
    hand, deck, discard, play = firstHand(cards)
    totalDeck = card_format.allDeckCards(hand, deck, discard, play)
    playAreas = [hand, deck, discard, play]
    possibleBuys = list()
    gStartPosition = [totalDeck, playAreas, possibleBuys]
    return