MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / main

Function main

projects/Tile Matching/tile_matching.py:130–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129
130def main():
131 root = tk.Tk()
132 root.title("Tile Matching Game")
133
134 rows, columns = 4, 4
135
136 game = TileMatchingGame(root, rows, columns)
137
138 # Reset Button
139 reset_button = tk.Button(root, text="Reset Game", command=game.reset_game)
140 reset_button.grid(row=rows + 3, columnspan=columns)
141
142 # Exit Button
143 exit_button = tk.Button(root, text="Exit", command=root.destroy)
144 exit_button.grid(row=rows + 4, columnspan=columns)
145
146 root.mainloop()
147
148
149if __name__ == "__main__":

Callers 2

reset_gameMethod · 0.70
tile_matching.pyFile · 0.70

Calls 2

TileMatchingGameClass · 0.85
titleMethod · 0.80

Tested by

no test coverage detected