Main Content

I added a web page to PHPoC Shield for Arduino(P4S-347/348) to control a snake on the 8X8 Matrix LED. If a user presses one of direction buttons, the direction value is sent to Arduino through HTML5 Web socket. Then the snake changes its direction. For someone who doesn’t know about the Snake game. I will introduce rule of this game. The snake moves to have a fruit. Whenever the snake eats a fruit, it gets longer. If the snake bites itself, the game is over. but if it eats 15 fruits, the user wins the game.”

Link to article