An open API service indexing awesome lists of open source software.

https://github.com/mikkoi/rubik

A Rubik cube simulator with a terminal UI
https://github.com/mikkoi/rubik

c check cmake hacktoberfest ncurses

Last synced: about 1 month ago
JSON representation

A Rubik cube simulator with a terminal UI

Awesome Lists containing this project

README

          

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=
* 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= -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=
* make
* ctest
* make install
* ../install-Debug/rubik/bin/rubik