Advertisement
Guest User

here u go arthur 101

a guest
Oct 17th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #We have used a function here as it will be easier to re-use this code in the future.
  2. def draw():
  3. board = ""
  4.  
  5. for i in range(-1,6):
  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.
  7. if i%2==0:
  8. board += "| " * 4
  9. board += "\n| | | |"
  10. else:
  11. board += " _____ " * 3
  12. board += "\n"
  13. print (board)
  14.  
  15. draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement