Skip to content

mikkoi/rubik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Rubik cube simulator with a terminal UI


# Requirements

* NCurses


# Install

* git clone https://github.com/mikkoi/rubik.git
* mkdir build-rubik && cd build-rubik
* cmake ../rubik -DCMAKE_BUILD_TYPE=Release -D BUILD_TESTING=False
* If your NCurses library is not installed in a default directory, add parameter:
* -D CURSES_INCLUDE_PATH=<ncurses_installation>
* make
* make install


# Contribute

If you want to contribute code, you will need to compile the project
in Debug mode and run tests. Here is how:


## Check Framework

* You need C test framework Check. Install via system tools, e.g. 
  `sudo apt-get install check` or `yum install check`.
* Or direct from GitHub: https://github.com/libcheck/check/releases


## Rubik

* git clone https://github.com/mikkoi/rubik.git
* mkdir build-Debug-rubik && cd build-Debug-rubik
* cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_TESTING=True -D Check_ROOT=<check_installation> -D CMAKE_INSTALL_PREFIX=../install-Debug-rubik ../rubik
* If your NCurses library is not installed in a default directory, add parameter:
* -D CURSES_INCLUDE_PATH=<ncurses_installation>
* make
* ctest
* make install
* ../install-Debug/rubik/bin/rubik

Releases

No releases published

Packages

No packages published