from tkinter import *

w = Tk()
w.title("Заголовок окна")
canv = Canvas(w, width=1024, height=768, bg="#42AAFF")

canv.create_rectangle(100, 300, 300, 500, width=5, fill="yellow")

canv.create_rectangle(130, 320, 160, 350, width=5, fill="blue")
canv.create_rectangle(240, 320, 270, 350, width=5, fill="blue")
canv.create_rectangle(130, 370, 270, 400, width=5, fill="blue")

canv.create_line (480, 500, 570, 300, width=5)
canv.create_line (570, 300, 660, 500, width=5)
canv.create_line (480, 500, 660, 500, width=5)

canv.create_line (0, 500, 1025, 500, width=6)

canv.create_line (660, 500, 750, 300, width=5)
canv.create_line (750, 300, 840, 500, width=5)
canv.create_line (660, 500, 840, 500, width=5)

canv.create_line (840, 500, 930, 300, width=5)
canv.create_line (930, 300, 1020, 500, width=5)
canv.create_line (840, 500, 1020, 500, width=5)

canv.pack()

w.mainloop()
print("Игра окончена!")
