Skip to content

Popular snake game implementation in PHP and running in CLI.

License

Notifications You must be signed in to change notification settings

akondas/php-snake

Repository files navigation

PHP-Snake

Popular snake game implementation in PHP and running in CLI.

PHP-ML requires PHP >= 7.0.

╔══════════════════════════════════════════════════════════════╗
║                                                              ║
║                                                              ║
║                                                              ║
║                                                              ║
║                                                              ║
║                                                              ║
║                     ░                                        ║
║                     ░         $                              ║
║                     ░                                        ║
║                     ░                                        ║
║                     ░                                        ║
║                     ░░░░░░░░░░░░░░█                          ║
║                                                              ║
║                                                              ║
║                                                              ║
║                                                              ║
║                                                              ║
║                                                              ║
╚══════════════════════════════════════════════════════════════╝

Requirements

  • PHP >= 7.0.0
  • Composer

Install

Clone from GitHub:

git clone [email protected]:itcraftsmanpl/php-snake.git
cd php-snake
composer install --no-dev

Launch

Run simple command in CLI:

php snake.php

Keys:

w - move up
a - move left
s - move down
d - move right

References

These publications have helped me in creating PHP-Snake game:

License

PHP-Snake is released under the MIT Licence. See the bundled LICENSE file for details.

Author

Arkadiusz Kondas (@ArkadiuszKondas)

About

Popular snake game implementation in PHP and running in CLI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages