Created
October 22, 2018 09:05
-
-
Save keithn/0b3c024fbac3e801c16f7643d76e1376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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