DEV Community

Discussion on: Snake...in pure HTML⁉️ [no JS, no CSS, no images!!] 😱

Collapse
 
goodevilgenius profile image
Dan Jones

This is a cool idea. But, if you're going to use PHP, why not just store the game state on the server and use a session cookie?

Collapse
 
grahamthedev profile image
GrahamTheDev

Because the idea was that this was to be HTML only, which necessitates storing state in the URL. Unfortunately due to needing more files than atoms in the universe I had to use PHP to simulate all the lose pages. 💗