Made a Snake Game(half ai)
I couldn’t stand how terrible my JavaScript skills were, so I decided to copy a Snake game to get more familiar with it.
There was a period when I finished writing the function main()
and kept running into issues. After looking at the source code, I realized the problem: I didn't know I needed to call main()
...
The snake ate the candy, but the game logic seems to have some problems…
from 2025.5.16
– Have no business with the game logic, I forgot adding score
in html file.
– I know how to debug the game! Directly debug the html file and all that good.
– Published to Google Extension, download here