Hi thanks for the feedback. Great obs! Yea, the extra segment bit is probably what makes the game different and consequently the only thing that needs explaining. btw if you press h on the keyboard you can see some hidden commands. Interestingly when I first developed it as a potential board game, I was thinking along the water pipes idea, but when I coded it the snake idea seemed like a no-brainer.
The snakes both moving at the same time problem is something I need to work out. It didn't happen in the python version but when I ported it over to JS I found this happened. It seems to be do with JS not refreshing until you hand back control to the user, and I need to fix it but it may need me to refactor the whole program.
I am working on having more complex games, more squares, obstacles (
https://www.basilisk.net/obstacle.htm), a 'wormhole' so you can come in on the other side, a version where you can't fall off the edges (
https://www.basilisk.net/border.htm) etc.
I am working on the AI to figure out how to make the game cleverer, but it tends not to spot a trap being laid yet, so it might need some reinforcement learning model to get to the next level. I'm also trying to figure out how to make it dumber for newbies but without making it too dumb!
I would also like to improve the GUI before I port it to iOS and Android.