aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvehme003 <vehme003@umn.edu>2021-04-25 14:52:24 -0500
committerGitHub Enterprise <noreply-github@umn.edu>2021-04-25 14:52:24 -0500
commitcaab25acd3170ae6a34f2ef1fe4a9706bed8cda5 (patch)
treeac0d66688a4140a7f8a5cea9b36d9a70ae9a5166
parentRearrange and add more (diff)
downloadcsci4511w-caab25acd3170ae6a34f2ef1fe4a9706bed8cda5.tar
csci4511w-caab25acd3170ae6a34f2ef1fe4a9706bed8cda5.tar.gz
csci4511w-caab25acd3170ae6a34f2ef1fe4a9706bed8cda5.tar.bz2
csci4511w-caab25acd3170ae6a34f2ef1fe4a9706bed8cda5.tar.lz
csci4511w-caab25acd3170ae6a34f2ef1fe4a9706bed8cda5.tar.xz
csci4511w-caab25acd3170ae6a34f2ef1fe4a9706bed8cda5.tar.zst
csci4511w-caab25acd3170ae6a34f2ef1fe4a9706bed8cda5.zip
Delete node2.py
-rw-r--r--Jack/node2.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/Jack/node2.py b/Jack/node2.py
deleted file mode 100644
index 6ce82fc..0000000
--- a/Jack/node2.py
+++ /dev/null
@@ -1,17 +0,0 @@
-from board2 import *
-
-class Node:
- def __init__(self, currentState):
- self.curr = currentState #this is a board
- self.score = 0
- self.children = {}
-
- def make_state(self, v1, v2, p1): # Function for generating a child node
- self.children[(v1, v2)] = Node(self.curr.get_board)
- if (not p1):
- self.children[(v1, v2)].score = (self.children[(v1, v2)].curr.play_move(v1, v2) * -1) + self.score
- else:
- self.children[(v1, v2)].score = (self.children[(v1, v2)].curr.play_move(v1, v2)) + self.score
-
- def print(self): # function for drawing the board
- self.curr.print_board() \ No newline at end of file