Skip to content

Latest commit

 

History

History
executable file
·
77 lines (65 loc) · 1.69 KB

README.md

File metadata and controls

executable file
·
77 lines (65 loc) · 1.69 KB

Matrix Game

A game where a player has to defeat the computer by finding the same sum of 2 matrix rows and a column or 3 rows. Each player has two moves, to either rotate the matrix or to swap two elements in the matrix.

GitHub Repo stars Maintenance License

Demo

Table of Contents

Project Structure 📁

matrix_game/
├── src/
│   └── matrix_game.c
│
├── AUTHORS
├── demo.png
├── LICENSE
├── Makefile
├── matrix_game
└── README.md

Install 🔨

  • Install from github:
$ git clone https://github.com/nemo256/matrix_game
$ cd matrix_game
$ make
$ make clean install

Use 🚀

matrix_game <size_of_matrix>

  • Using 5 as the size:
$ matrix_game 5
  • Press R or P to either rotate the matrix or permute two values.

Develop ⚙️

  • Download the project:
$ git clone https://github.com/nemo256/matrix_game
$ cd matrix_game
  • Now change <src/matrix_game.c> (using vim):
$ vim src/matrix_game.c
  • Now just run make to compile the project:
$ make
$ make clean install
$ matrix_game 3

License 📑