How would I do this?

h4ck3rpr0n3 at gmail.com h4ck3rpr0n3 at gmail.com
Fri Jul 26 05:40:07 CEST 2013


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!



More information about the Python-list mailing list