Simple memory game in C++ & OpenGL
Memory game is a small single-player game written in C++ language with OpenGL. Your goal is to match all the pairs of cards in the smallest number of moves.
up, down, left, right : choose next card to open
space : open the chosen card; start new game when finished
esc : close the game
versions last used by the author are in double parentheses and italic
General:
- Linux-based operating system
((Debian testing)) - C++ compiler
((APT packageg++, 12.2.+)) - CMake
((APT packagecmake, 3.25.+)) - GNU Make
((APT packagemake, 4.3.+)) - OpenGL, GLFW, GLEW, GLM
- Clang-format
((APT packageclang-format, 14.+))
Game can be built using CMake that generates GNU Make Makefile.
Follow these steps to build:
$ cd /path/to/project/directory/
$ mkdir build
$ cd build
$ cmake ..
$ makeGame can be run directly using the executable file in the buildOut/bin root directory:
$ /path/to/project/directory/buildOut/bin/MemoryGame [-r rows] [-c columns]-r rows : number of rows, must be between 1 and 12 (default 4)
-c columns : number of columns, must be between 1 and 12 (default 4)