From b6c52ba47617e18b1634c3c89a4e830e19afb4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Mon, 16 Apr 2018 00:24:24 +0200 Subject: [PATCH] fix type error --- board.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board.py b/board.py index 1af1811..b3bd628 100644 --- a/board.py +++ b/board.py @@ -284,7 +284,7 @@ class Board: legal_moves = set() 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] # print("Dice permuts:",dice_permutations) for roll in dice_permutations: