Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #We have used a function here as it will be easier to re-use this code in the future.
- def draw():
- board = ""
- for i in range(-1,6):
- #We did -1 to 6 rather than 0 to 7, as otherwise, the board would display incorrectly due to the its dependancy on the other sections.
- if i%2==0:
- board += "| " * 4
- board += "\n| | | |"
- else:
- board += " _____ " * 3
- board += "\n"
- print (board)
- draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement