YOU CAN DROP NOW (if the column is full you override other ppl lmao

This commit is contained in:
Vincent Rodley 2025-08-01 10:44:41 +12:00
parent 85de7ecd85
commit b63c52c22b

19
main.py
View File

@ -26,25 +26,22 @@ This is how the board should output:
"""
def printBoard(board):
print("===============")
rows = []
for column in board:
for i in range(6):
row = ""
for i in range(len(column)):
index = board.index(column)
row += "|" + board[index][i]
rows.append(row+"\n")
for column in board:
row += "|" + column[i]
row += "|"
rows.append(row)
rows = rows[::-1]
toPrint = ""
for row in rows:
toPrint += row
print(toPrint)
toPrint += (row + "\n")
print(f"===============\n{toPrint[:-1]}\n===============")
# Board will be 7x6.
@ -80,10 +77,8 @@ while playing:
board[chosenColumn][tile] = turn
print(board)
printBoard(board)
input()
turn = 'Y' if turn == 'R' else 'R'