Get support for dbu/php-snake

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

dbu/php-snake

                             /^\/^\
                           _|__|  O|
                  \/     /~     \_/ \
                   \____|__________/  \
                         \_______      \
                                 `\     \                    \
                                  |     |                     \
 ____              _             /     /                       \
/ ___| _ __   __ _| | _____     /     /                         \\
\___ \| '_ \ / _` | |/ / _ \   /     /                           \ \
 ___) | | | | (_| |   <  __/  /     /                             \  \
|____/|_| |_|\__,_|_|\_\___| /     /             _----_            \   \
                            /     /           _-~      ~-_         |   |
                           (      (        _-~    _--_    ~-_     _/   |
                            \      ~-____-~    _-~    ~-_    ~-_-~    /
                              ~-_           _-~          ~-_       _-~   - jurcy -
                                 ~--______-~                ~-___-~

A command line snake game implemented in PHP.

This demonstrates the cursor control provided by the Symfony Console. Let it not distract you from your work ;-)

The application is provided as a stand-alone .phar file with the help of humbug/box.

CI

Installation and Usage

Installation

wget https://github.com/dbu/php-snake/releases/latest/download/php-snake.phar
chmod u+x php-snake.phar

Run

./php-snake.phar

Development

Clone the git repository, then run:

composer install
./bin/console

Create the .phar file

make dist

Code Quality

make cs
# to fix code style issues automatically
make fix-cs

FAQ

My console is looking weird after running the command

This can happen after aborting the program, e.g. with -c. Reset the console to sane defaults by typing:

stty sane

Be aware that input is probably hidden, so you won't see anything until you hit enter.

Why Snake?

Because it was the first thing I could think of. And its simple enough that it should be possible to follow what is going on.

What is this font?

Delta Corps Priest 1 from http://patorjk.com/software/taag/

Screenshots

start screen

lost game

gameplay

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2