aboutsummaryrefslogtreecommitdiffstats
path: root/python/MCTS.py
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-26 15:00:48 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-26 15:03:24 -0500
commit2635d82c955ffdbf1c9778ce02e3ffc82a266886 (patch)
tree438c299b8b869df29e43e7c0ce3ee917e5ad0f98 /python/MCTS.py
parentchange base??? (diff)
downloadcsci4511w-2635d82c955ffdbf1c9778ce02e3ffc82a266886.tar
csci4511w-2635d82c955ffdbf1c9778ce02e3ffc82a266886.tar.gz
csci4511w-2635d82c955ffdbf1c9778ce02e3ffc82a266886.tar.bz2
csci4511w-2635d82c955ffdbf1c9778ce02e3ffc82a266886.tar.lz
csci4511w-2635d82c955ffdbf1c9778ce02e3ffc82a266886.tar.xz
csci4511w-2635d82c955ffdbf1c9778ce02e3ffc82a266886.tar.zst
csci4511w-2635d82c955ffdbf1c9778ce02e3ffc82a266886.zip
Revert "change base???"
This reverts commit 6b9335b670df03d3452a9f65f03e1884d60ac88b.
Diffstat (limited to 'python/MCTS.py')
-rw-r--r--python/MCTS.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/python/MCTS.py b/python/MCTS.py
index ec6e6c1..6c71ba9 100644
--- a/python/MCTS.py
+++ b/python/MCTS.py
@@ -1,10 +1,6 @@
import math
from copy import deepcopy
-<<<<<<< HEAD
from time import perf_counter
-=======
-from time import clock
->>>>>>> f6e623d... change base???
from random import choice
from GameState import GameState
@@ -139,13 +135,8 @@ class MCTSGameController(GameController):
self.root_node = MCTSNode(state)
iterations = 0
-<<<<<<< HEAD
start_time = perf_counter()
while perf_counter() < start_time + time_allowed:
-=======
- start_time = clock()
- while clock() < start_time + time_allowed:
->>>>>>> f6e623d... change base???
node = self.select()
if node.pending_moves != set():