From 3da22b88502a5b1138de5fdcd25d4b00dcc25691 Mon Sep 17 00:00:00 2001 From: pbsinclair42 Date: Wed, 27 Feb 2019 23:54:32 +0000 Subject: [PATCH] Add support for Python 2.x --- mcts.py | 2 ++ naughtsandcrosses.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mcts.py b/mcts.py index bc531ea..e775500 100644 --- a/mcts.py +++ b/mcts.py @@ -1,3 +1,5 @@ +from __future__ import division + import time import math import random diff --git a/naughtsandcrosses.py b/naughtsandcrosses.py index 3f53279..a42f3a3 100644 --- a/naughtsandcrosses.py +++ b/naughtsandcrosses.py @@ -1,3 +1,5 @@ +from __future__ import division + from copy import deepcopy from mcts import mcts from functools import reduce @@ -73,4 +75,4 @@ def __hash__(self): mcts = mcts(timeLimit=1000) action = mcts.search(initialState=initialState) -print(action.x, action.y) +print(action)