# Connect 4 - make_board

Hi Folks

the game runs. jippie, but i have a small problem

i cant get the board to get drawn from left to right, its drawn from upwards to downwards

hope anyone can help me

Sincerly
elomanias

``````def make_board():
global rows,columns
global board
rows = input("Bitte Zeilen angeben(mehr als 4): ")
print " ----- ---------- ------ ------ ----- ----- "
columns = input("Bitte Spalten angeben(mehr als 4): ")

board = dict()
min = 4
if rows<min:
make_board()
elif columns<min:
make_board()
for x in range(rows):
for y in range(columns):
#board = (x+1,y+1)
board[(x,y)] = "LeereZellen"
return board

#CHOOSE PLAYER FUNCTION

def choose_player():
choose = input("Spieler 1 vs. Computer [1 eintippen] - Spieler 1 vs. Spieler 2 [2 eintippen]: ")
if choose == 1:
#p1 vs. computer
choose_1()
elif choose == 2:
choose_2()
else:
choose_player()

#BLANKS EXIST

def blanks_exist():
for x in range(rows):
for y in range(columns):
if board[(x,y)] == "LeereZellen":
return True
return False

def print_board():
for x in range(rows):
print "|",
for y in range(columns):
if board[(x,y)] == "LeereZellen": print " |",
else: print board[(x,y)], "|",
print ""``````
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.