Skip to content

A game where a player has to defeat the computer by finding the same sums.

License

Notifications You must be signed in to change notification settings

nemo256/matrix_game

Repository files navigation

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 📑