from tkinter import *

w = Tk()
w.title("Заголовок окна")
canv = Canvas(w, width=1024, height=768, bg="alice blue")


y = 50
for row in range(20+1):
    canv.create_line(0, y, 1024, y, fill="blue", width = 2)
    y += 50
    pass

    canv.create_line(900, 0, 900, 768, fill="red", width = 10)

x = 50

for col in range(20+1):
    canv.create_line(x, 0, x, 768, fill="blue", width = 2)
    x += 50
    pass





canv.pack()

w.mainloop()
print("Игра окончена!")
