From 5acd79b6dac1250afd4005d94801e5fc2ea3b641 Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Sun, 20 May 2018 19:43:28 +0200 Subject: [PATCH] Slight modification to move calculation --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index c774cb7..cad6ed9 100644 --- a/app.py +++ b/app.py @@ -32,14 +32,15 @@ def calc_move_sets(from_board, roll, player): # print("Value of r:", r) sets.append([Board.calculate_legal_states(board, player, [r, 0]), r]) total += r - sets.append([Board.calculate_legal_states(board, player, [total, 0]), total]) - # print(sets) + sets.append([Board.calculate_legal_states(board, player, roll), total]) return sets def tmp_name(from_board, to_board, roll, player, total_moves, is_quad=False): sets = calc_move_sets(from_board, roll, player) return_board = from_board + print("To board:\n",to_board) + print("All sets:\n",sets) for idx, board_set in enumerate(sets): board_set[0] = list(board_set[0]) # print(to_board)