I'm trying to make a board that looks like this:
x ! x ! x
~ ~ ~ ~ ~
x ! x ! x
~ ~ ~ ~ ~
x ! x ! x
This is what I have so far:
def print_tic_tac_toe(horiz_char, vert_char):
print(vert_char*2)
print(horiz_char*5)
return
print_tic_tac_toe('~', '!')
I can't figure out how to get the 'x' to print between the vertical characters. How should I go about this? Is a newline character involved?