aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--board2.py13
-rw-r--r--main2.py10
2 files changed, 23 insertions, 0 deletions
diff --git a/board2.py b/board2.py
new file mode 100644
index 0000000..1672ec8
--- /dev/null
+++ b/board2.py
@@ -0,0 +1,13 @@
+from random import *
+
+class Board: #A class for managing different situations and states happening in the game and on the board
+ def __init__(self, board):
+ self.board=board
+ def print_board(self):
+ for i in self.board:
+ for j in i:
+ print(j,end="")
+ print()
+ def play_move(r,c)
+ if(r%2==1):
+ \ No newline at end of file
diff --git a/main2.py b/main2.py
new file mode 100644
index 0000000..c9bedaf
--- /dev/null
+++ b/main2.py
@@ -0,0 +1,10 @@
+from board2 import *
+
+def main():
+ board =[["*", " ", " ", " ","*", " ", " ", " ","*", " ", " ", " ","*"],[" "," "," "," "," "," "," "," "," "," "," "," "," "],["*", " ", " ", " ","*", " ", " ", " ","*", " ", " ", " ","*"],[" "," "," "," "," "," "," "," "," "," "," "," "," "],["*", " ", " ", " ","*", " ", " ", " ","*", " ", " ", " ","*"],[" "," "," "," "," "," "," "," "," "," "," "," "," "],["*", " ", " ", " ","*", " ", " ", " ","*", " ", " ", " ","*"]]
+ Board=Board(board)
+ Board.print_board()
+
+
+
+main() \ No newline at end of file