Skip to content
Maze C program using ncurses
C CMake C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src
.clang-format
.gitignore
CMakeLists.txt
License
README.md

README.md

Maze

Codacy Badge CodeFactor

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

Build management by CMake

CMake must be installed. Goto the Maze directory.

mkdir build
cd build
cmake ..
make

Executing 'maze'

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

Example 'maze' data file

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     *                  ***       *          *    **         *
       *********                    ********************     ***********
You can’t perform that action at this time.