|
state.players[k].shuffle_deck() |
# the mcts rollouts don't randomize cards that have been seen with Index
indexed_cards_in_deck = []
# print("mcts print: %s" % (state.players))
if len(state.players[k].deck) > 0:
while len(state.players[k].deck) > 0 and state.players[k].deck[-1].deck_location_known:
indexed_cards_in_deck.append(state.players[k].deck.pop())
for indexed_card in indexed_cards_in_deck:
state.players[k].deck.append(indexed_card)
# and "imagine" a scenario for the opponent - this assumes knowledge of opponent decklist!
state.players[k].shuffle_deck()
This currently looks at my deck, finds the cards that are indexed, puts them in "indexed_cards_in_deck". Then it takes "indexed_cards_in_deck" and puts them BACK into my deck.
Then it shuffles the deck.
This code doesn't do anything.
open-mtg/mcts.py
Line 74 in 8ad261f
This currently looks at my deck, finds the cards that are indexed, puts them in "indexed_cards_in_deck". Then it takes "indexed_cards_in_deck" and puts them BACK into my deck.
Then it shuffles the deck.
This code doesn't do anything.