Skip to content

thtg88/snake-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play Snake in your terminal!

Snake CLI

Play Snake in your terminal!

Requirements

PHP 8.1 - you can install it on macOS via Homebrew with:

brew install php@8.1

Composer: you can find instructions on how to install it at https://getcomposer.org

Install

Clone the repo and install the dependencies

composer install

Play

From your terminal, execute:

php index.php

Commands

  • w move the snake up
  • a move the snake left
  • s move the snake down
  • d move the snake right
  • p pause the game
  • r resume the game
  • q quit the game

About

Play Snake in your terminal!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages