fix type error
This commit is contained in:
parent
8998dca1f2
commit
b6c52ba476
2
board.py
2
board.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user