This is a personal project where I try to code and put together different games that you can play on the command line.
It contains:
GUESS THE NUMBER | |
---|---|
Description | A small game where you have to guess a random number between 1 and 100. |
Options | - Customizable range. - Customizable number of attempts. |
TIC-TAC-TOE | |
---|---|
Description | Tic-tac-toe is played on a 3 x 3 grid by two players. The players alternately place the marks X and O in one of the 9 spaces in the grid. The first player to get 3 of their marks in a row (vertically, horizontally or diagonally) wins. |
Options | - You can play against the CPU. - You can play against another PLAYER in shared-screen. - Customizable grid size. - Customizable marks (X, O) colors. |
CONNECT 4 | |
---|---|
Description | Connect 4 is played on a 7 x 6 grid by two players. The players alternately place a ๐ด and a ๐ต in one of the 7 columns in the grid. The first player to get 4 of their marks in a row (vertically, horizontally or diagonally) wins. |
Options | - You can play against the CPU. - You can play against another PLAYER in shared-screen. - Customizable grid size. |
command | description |
---|---|
make |
compile terminal_games |
make clean |
remove tmp files |
make fclean |
remove tmp files and executable |
make re |
force recompile |
./terminal_minigames |
launch the game |