MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / reset_board

Function reset_board

Connect-Four/main.py:61–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 canvas.create_oval(x1, y1, x2, y2, fill=color)
60
61def reset_board():
62 global board, current_player
63 board = [[EMPTY] * COLS for _ in range(ROWS)]
64 current_player = PLAYER_1
65 draw_board()
66
67# Create the main window
68root = tk.Tk()

Callers 1

drop_pieceFunction · 0.85

Calls 1

draw_boardFunction · 0.85

Tested by

no test coverage detected