I'm trying to build the snake game using python turtle module. I am stuck at this error:
AttributeError: '_Screen' object has no attribute 'mainloop'
As of now I've only set a screen and trying to test if that works.
Code:
import turtle
#set up the screen
wn = turtle.Screen()
wn.title("snake game")
wn.bgcolor("Blue")
wn.setup(width=600, height=600)
wn.tracer(0)
wn.mainloop()