Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51279
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-07-25 20:40 -0700 |
| References | <a68a52f8-a9f2-438c-a728-402dadf822f6@googlegroups.com> <mailman.5130.1374809568.3114.python-list@python.org> |
| Message-ID | <a8abab99-374f-422a-8e3a-5f0cb21f7a8a@googlegroups.com> (permalink) |
| Subject | Re: How would I do this? |
| From | h4ck3rpr0n3@gmail.com |
Thank you for the quick reply. Unfortunately I'm still a little confused... How might I implement that into my current code?
def Make_Board():
Col = "+--+"
Row = "| |"
Col2 = "--+"
Row2 = " |"
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("1", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "1")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("2", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "2")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("3", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "3")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("4", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "4")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("5", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "5")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("6", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "6")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("7", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "7")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
print("8", Row + Row2 + Row2 + Row2 + Row2 + Row2 + Row2 + Row2, "8")
print(" ", Col + Col2 + Col2 + Col2 + Col2 + Col2 + Col2 + Col2)
def Col_Label():
Col_Label_Black = " A B C D E F G H"
print(Col_Label_Black)
def Col_Label2():
Col_Label_White = " A B C D E F G H"
Col_Label_White = Col_Label_White.lower()
print(Col_Label_White)
def Board():
Col_Label()
Make_Board()
Col_Label2()
Board()
Thanks again for your help!
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How would I do this? John Doe <h4ck3rpr0n3@gmail.com> - 2013-07-25 20:16 -0700
Re: How would I do this? Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-25 21:31 -0600
Re: How would I do this? h4ck3rpr0n3@gmail.com - 2013-07-25 20:40 -0700
Re: How would I do this? Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-25 22:02 -0600
csiph-web