Skip to content

Commit

Permalink
Add support for Python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsinclair42 committed Feb 27, 2019
1 parent 7403c69 commit 3da22b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mcts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import division

import time
import math
import random
Expand Down
4 changes: 3 additions & 1 deletion naughtsandcrosses.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import division

from copy import deepcopy
from mcts import mcts
from functools import reduce
Expand Down Expand Up @@ -73,4 +75,4 @@ def __hash__(self):
mcts = mcts(timeLimit=1000)
action = mcts.search(initialState=initialState)

print(action.x, action.y)
print(action)

0 comments on commit 3da22b8

Please sign in to comment.