fix type error

This commit is contained in:
Christoffer Müller Madsen 2018-04-16 00:24:24 +02:00
parent 8998dca1f2
commit b6c52ba476

View File

@ -284,7 +284,7 @@ class Board:
legal_moves = set() legal_moves = set()
if not Board.any_move_valid(board, player, roll): if not Board.any_move_valid(board, player, roll):
return [ board ] return { board }
dice_permutations = list(itertools.permutations(roll)) if roll[0] != roll[1] else [[roll[0]]*4] dice_permutations = list(itertools.permutations(roll)) if roll[0] != roll[1] else [[roll[0]]*4]
# print("Dice permuts:",dice_permutations) # print("Dice permuts:",dice_permutations)
for roll in dice_permutations: for roll in dice_permutations: