Skip to content

josokw/Maze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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     *                  ***       *          *    **         *
       *********                    ********************     ***********

About

Game: Maze C program using ncurses (Linux)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published