Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.47 KB

File metadata and controls

55 lines (43 loc) · 1.47 KB

Memory-Game

Simple memory game in C++ & OpenGL

About

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.

Keys in use

up, down, left, right : choose next card to open
space : open the chosen card; start new game when finished
esc : close the game


Dependencies

Standard build & run

versions last used by the author are in double parentheses and italic

General:

  • Linux-based operating system
    ((Debian testing))
  • C++ compiler
    ((APT package g++, 12.2.+))
  • CMake
    ((APT package cmake, 3.25.+))
  • GNU Make
    ((APT package make, 4.3.+))
  • OpenGL, GLFW, GLEW, GLM

Automated formatting


How to build?

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 ..
$ make

How to run?

Game 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)