GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - Seniru/cli-games: Games in the terminal

BranchesTags
Open more actions menu

Latest commit

 

History

269 Commits
269 Commits

Folders and files

NameName
Last commit message
Last commit date
Codle
Codle
 
 
Hangman
Hangman
 
 
MazeEscape
MazeEscape
 
 
RockPaperScissors
RockPaperScissors
 
 
SlotMachine
SlotMachine
 
 
Snake
Snake
 
 
Tetris
Tetris
 
 
TextAdventures
TextAdventures
 
 
TicTacToe
TicTacToe
 
 
TypingSpeed
TypingSpeed
 
 
Wordle
Wordle
 
 
_includes
_includes
 
 
.gitignore
.gitignore
 
 
CONTRIBUTORS
CONTRIBUTORS
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
install-games.sh
install-games.sh
 
 
menu.sh
menu.sh
 
 

Repository files navigation

CLI Games

Games in the terminal

Run on Repl.it

CLI Games is a community-driven collection of games that could be run in your terminal! Currently this project has many games including,

  • Hangman
  • Maze Escape
  • Text Adventures
  • Tic-Tac-Toe
  • Rock, Paper, Scissors

And more in the future!

How to Install?

Installation is very simple.

#Clone the repo
git clone https://github.com/salif/cli-games.git
cd cli-games
#install the dependences for the games (for Unix systems and Lunix)
bash install-games.sh

How to Play?

for Windows

After cloning, run dir to get a list of available directories of games. Then navigate to your favourite game using the cd command

Eg: cd Hangman

Read the README file in the respective directory to get more instruction about installation and playing. Most of the games support different languages (including node-js and python) and the choice is yours!

for Unix/Linux

just type

bash games.sh

and select the game by the number or 'e' for exit. If a game has a JS and Python version, you can choose which one you prefer you to play

New alternative Type

./menu.sh

and select the game using arrows or type its name to easily selecting it. If a game has a JS and Python version, you can choose which one you want to play

Contributing

Want to contribute this project? We are happy to accept your contributions! You can do the following to contribute us

  • Making / Implementing suggestions and new features
  • Creating / Fixing bug reports
  • Improving the performance
  • Creating new games
  • Spreading the word!

Creating new games

Before creating a new game, please check if it is available already, or somebody is working on creating that game. Then make sure to create a new issue to make sure others are OK with it. If you got approval for your suggestion, then move one! Code your game and create a PR with the new changes. We'll be happy to introduce your new game πŸ˜„

πŸ› οΈ For Developers

A new script, menu.sh, now handles the game menu, so you don’t need to manually edit games.sh anymore. If you’re not using menu.sh, you’re free to manually add your game to games.sh.

Create a new folder named after your game. Use one of the following structures depending on your language:

Python:

YourGame/
β”œβ”€β”€ __init__.py         # Main entry point
└── requirements.txt    # Python dependencies

JavaScript:

YourGame/
β”œβ”€β”€ index.js            # Main entry point
β”œβ”€β”€ package.json        # Project metadata and dependencies
└── package-lock.json   # Exact dependency versions

Make sure init.py (Python) or index.js (JavaScript) contains the code that runs your game.

This project is driven on community basis. So we are happy to accept your contributions a lot!

About

Games in the terminal

salif.github.io/cli-games/

Topics

cli-gamecli-gamesconsoleconsole-gameconsole-gamesgamegameshacktoberfesthacktoberfest-acceptedhacktoberfest2025hangmanmaze-escapemaze-gamerock-paper-scissorssnake-gameterminalterminal-gameterminal-gamestic-tac-toetictactoe

Resources

Readme
MIT license
Activity

Stars

83 stars

Watchers

3 watching

Forks

42 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.