Today in class I made a snake game in visual studio code.

I used

I used the code if snake.x < 0 or snake.x >= WIDTH or snake.y < 0 or snake.y >= HEIGHT:
running = False to make it so that the game would stop if the snake left the cube.
Today in class I made a snake game in visual studio code.

I used

I used the code if snake.x < 0 or snake.x >= WIDTH or snake.y < 0 or snake.y >= HEIGHT:
running = False to make it so that the game would stop if the snake left the cube.