Skip to content

Commit

Permalink
print indented board
Browse files Browse the repository at this point in the history
  • Loading branch information
jawwadzafar committed Jun 2, 2021
1 parent a78cfa4 commit d43dc48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ def __init__(self):

def display_board(self):
clear()
print(self.board[0] + " | " + self.board[1] + " | " + self.board[2])
print(self.board[3] + " | " + self.board[4] + " | " + self.board[5])
print(self.board[6] + " | " + self.board[7] + " | " + self.board[8])
print(self.board[0] + " | " + self.board[1] + " | " + self.board[2])
print('--- + --- + ---')
print(self.board[3] + " | " + self.board[4] + " | " + self.board[5])
print('--- + --- + ---')
print(self.board[6] + " | " + self.board[7] + " | " + self.board[8])


def turn(self):
Expand Down

0 comments on commit d43dc48

Please sign in to comment.