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
- Host: GitHub
- URL: https://github.com/mikkoi/rubik
- Owner: mikkoi
- License: lgpl-2.1
- Created: 2019-08-29T11:24:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-23T18:53:56.000Z (over 6 years ago)
- Last Synced: 2025-03-05T11:33:59.418Z (over 1 year ago)
- Topics: c, check, cmake, hacktoberfest, ncurses
- Language: C
- Homepage:
- Size: 205 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
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