This is a CLI game written in PHP 7.2.
The game uses WASD for movements.
The objective of the game is to collect food dots and collect as much points as possible.
During the game, a developer mode can be activated that contains additional testing functionality.
There is a custom game engine class inside the game that takes care of mainly three things:
The latter being the main challenge that faced this project.
Run the game in a CLI:
docker run -it --rm --name php-snake joakimwinum/php-snake
This project is licensed under the MIT License - see the LICENSE file for details
Content type
Image
Digest
Size
28.7 MB
Last updated
over 4 years ago
docker pull joakimwinum/php-snake