Skip to content

Instantly share code, notes, and snippets.

@jamesshah
Created November 14, 2019 04:30
Show Gist options
  • Save jamesshah/684b00b77311b7681209416970363dac to your computer and use it in GitHub Desktop.
Save jamesshah/684b00b77311b7681209416970363dac to your computer and use it in GitHub Desktop.
theBoard = {'7': ' ' , '8': ' ' , '9': ' ' ,
'4': ' ' , '5': ' ' , '6': ' ' ,
'1': ' ' , '2': ' ' , '3': ' ' }
def printBoard(board):
print(board['7'] + '|' + board['8'] + '|' + board['9'])
print('-+-+-')
print(board['4'] + '|' + board['5'] + '|' + board['6'])
print('-+-+-')
print(board['1'] + '|' + board['2'] + '|' + board['3'])
@everydaySeidr
Copy link

When I print it comes out uneven and the vertical lines do not match the horizontal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment