This game was created as a rule breaking entry to the Bulgaria PHP Conference 2016 Hackathon. Joshua Thijssen assisted with the development of this entry, but also got interested enough to make his own (awesome) PHP snake game.
To enable sound effects, please install the
modplayer extension. The project has an installation tutorial and could be found here.
Multi Player Mode
php play.php mk
In this mode the walls are not boundaries, if you crash into the other player or yourself you will lose the whole of your snake.
The arrow keys control one of the snakes and the 'A', 'S', 'D' and 'W' keys control the other.
You have 100 seconds to play the game, the winner is the player with the longest snake at the end.
Single Player Mode
In this mode the walls are boundaries, if you crash into the wall or your own snake the game is over.
The remaining two modes are possible, but not really any fun.
Single Player (Keep Alive) Mode
php play.php k
Multi Player (Death) mode
php play.php m
Run in a Docker container
docker run --rm -it -v $(pwd):/code -w /code php:cli php play.php