Skip to content

Instantly share code, notes, and snippets.

@keithn
Created October 22, 2018 09:05
Show Gist options
  • Save keithn/0b3c024fbac3e801c16f7643d76e1376 to your computer and use it in GitHub Desktop.
Save keithn/0b3c024fbac3e801c16f7643d76e1376 to your computer and use it in GitHub Desktop.
import sys
width = 40
height = 10
Board = [[' ' for x in range(height)] for y in range(width)]
for i in range(height):
Board[0][i] = '|'
Board[width-1][i] = '|'
for y in range(height):
for x in range(width):
sys.stdout.write(Board[x][y])
print('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment