The maze program uses the ncurses library that allows programmers to write text-based user interfaces. The maze, the player and the demons are represented by characters.
Installation ncurses Ubuntu:
sudo apt install libncurses5-dev libncursesw5-dev
CMake must be installed. Goto the Maze directory.
mkdir build
cd build
cmake ..
make
Maze needs a text file as input containing the maze and a string containing the player and the demons. The executable is found in the bin directory.
cd ../bin
./maze ../data/maze01.dat
X must try to reach 'exit' in the most shortest time. The demons are: o, # and +, they will annoy you.
Xo#+
************************ ******************** *********
*o * * * *** * * * ** *
** ** * * * * * *** * ** ****# * ** + *
* * ***** * * *** ** ** * * ** *
X * ** * ** ******* * ****** ** *** *
* * ** * * * ************ * * ** * **
******** * ********** ** *** * * * ** * **
* * o* * * * ** ** * ** ** **
* ** * * * * * * *** ** + **
* ** * ** *** * ********** * **
** * * * ** * * *** *** **
* * * * * ** * ***** **
* ** * *** **** # ******* *** ** **
* ** *** * ********* * *** * **
* ** * *** * #* * ** **********
* * * *** **** * ** ** * ** *
**** * *** ** * * ** exit *
* o * *** * * ** *
********* ******************** ***********