I am trying to build the snake game using the python's turtle module. This is my code so far:
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)
#Snake Head
head = turtle.Turtle()
head.speed(0)
head.shape("square")
head.color("Black")
head.penup()
head.goto(0, 0)
head.direction = "stop"
turtle.mainloop()
I've created the snake head but when I test for it, it does not show. Is my logic wrong?