Пример #1
0
def deck_entropy(deck_1, deck_2 = Deck.construct_standard_deck()):
	total=0
	for i, card in enumerate(deck_1):
		diff = 0
		for j, compare in enumerate(deck_2):
			if(card==compare):
				diff == i-j
				if(diff<0):
					diff*=(-1)
		total+=diff
	return total
Пример #2
0
def _debug():
	deck = Deck.construct_standard_deck()
	print deck
	mapped_deck = generate_map(deck )
	print mapped_deck