diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-04-25 14:54:51 -0500 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-04-25 14:54:51 -0500 |
commit | d40e0d02c955e97738615314443704d94219cff4 (patch) | |
tree | 14539c6b942f3293da6fd3dfd3187f5f69c422cc /Not Jack/Nodes.py | |
parent | Add files via upload (diff) | |
download | csci4511w-d40e0d02c955e97738615314443704d94219cff4.tar csci4511w-d40e0d02c955e97738615314443704d94219cff4.tar.gz csci4511w-d40e0d02c955e97738615314443704d94219cff4.tar.bz2 csci4511w-d40e0d02c955e97738615314443704d94219cff4.tar.lz csci4511w-d40e0d02c955e97738615314443704d94219cff4.tar.xz csci4511w-d40e0d02c955e97738615314443704d94219cff4.tar.zst csci4511w-d40e0d02c955e97738615314443704d94219cff4.zip |
Remove redundant folder
Diffstat (limited to '')
-rw-r--r-- | Not Jack/Nodes.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Not Jack/Nodes.py b/Not Jack/Nodes.py deleted file mode 100644 index da01944..0000000 --- a/Not Jack/Nodes.py +++ /dev/null @@ -1,18 +0,0 @@ -class Thing: # A class for Node related operations - def __init__(self, currentState): - self.Current = currentState - self.CurrentScore = 0 - self.children = {} - - def Make(self, i, j, player): # Function for generating a child node - self.children[(i, j)] = Thing(self.Current.Get_currentState()) - mul = 1 - if player: - mul *= -1 - self.children[(i, j)].CurrentScore = (self.children[(i, j)].Current.action(i, j) * mul) + self.CurrentScore - - def Populate(self, i, j, Child): # Function for adding a node - self.children[(i,j)] = Child - - def Draw(self): # function for drawing the board - self.Current.Draw_mat() |