I’m trying to create a minesweeper game and I need to be able to pick out a single square.
from tkinter import *
import random
startX = 0
startY = 0
game = Tk()
game.geometry('600x600')
game.title('Simon')
canvas = Canvas(game, width=600, height=600, bg='#13cce7')
canvas.pack()
for j in range(4):
for i in range(4):
tile = canvas.create_polygon(startX, startY, startX+150, startY, startX+150, startY+150, startX, startY+150, fill="grey", outline="black", width="5")
startY = startY+150
startY = 0
startX = startX+150
New contributor
Nabbster is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.