aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2021-04-26 15:01:14 -0500
committerMatt Strapp <strap012@umn.edu>2021-04-26 15:03:24 -0500
commitb0fefef57b8e93ef8e2a48a30831683993f7420b (patch)
tree0f59f58eb2938f8e7ed03e0d983a4b6d3f234ea1
parentRevert "actually add files" (diff)
downloadcsci4511w-b0fefef57b8e93ef8e2a48a30831683993f7420b.tar
csci4511w-b0fefef57b8e93ef8e2a48a30831683993f7420b.tar.gz
csci4511w-b0fefef57b8e93ef8e2a48a30831683993f7420b.tar.bz2
csci4511w-b0fefef57b8e93ef8e2a48a30831683993f7420b.tar.lz
csci4511w-b0fefef57b8e93ef8e2a48a30831683993f7420b.tar.xz
csci4511w-b0fefef57b8e93ef8e2a48a30831683993f7420b.tar.zst
csci4511w-b0fefef57b8e93ef8e2a48a30831683993f7420b.zip
Revert "Add files via upload"
This reverts commit 3bd397b71aedb472b43688a154c0e6d80f5f3427.
-rw-r--r--main.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/main.py b/main.py
deleted file mode 100644
index 6a123e1..0000000
--- a/main.py
+++ /dev/null
@@ -1,40 +0,0 @@
-from Algorithm import *
-from DotsNBoxes import *
-from Board import *
-from Nodes import *
-
-def main():
- while True:
-
- print("\t\t!! Welcome to the game of Dots and Boxes !!\n\n Be prepared to be crushed by the power of Artificial Intelligence ... !!\n\n\
- Kidding! You totally can beat it!\n\n\n")
-
- x = input("Press 1 to start the game or press 2 to escape from the inevitable doom!!\n\n")
- if x == "1":
-
- Board_Xdim = int(input("\nPlease enter the number of rows for the board: \n")) * 2 + 1
-
- if Board_Xdim < 5:
- print("\nthe number of rows should atleast be 2\n")
- exit()
-
- Board_Ydim = int(input("\nPlease enter the number of columns for the board: \n")) * 2 + 1
-
- if Board_Ydim < 5:
- print("\nthe number of columns should atleast be 2\n")
- exit()
-
- Ply_num = 2
- Ply_num2 = 3
- if Ply_num < 2:
- print("\nThe number of plies should be higher than 1\n")
- exit()
-
- Match = DotsNBoxes(Board_Xdim, Board_Ydim, Ply_num)
- Match.start()
- else:
- print ("\n\nEscape it is!")
- exit()
-
-if __name__ == "__main__":
- main() \ No newline at end of file