Using code already provided, write functions that will move a
Added on - 16 Sep 2019
CPSC 231 Project 08Group ________________________________________________Using code already provided, write functions that will move a mouse around a maze insearch of the exit, eating cheese along the way. The compiled program will look asdisplayed below.Download the following files and create aworkspace using them:https://www.msu.edu/~bowmanm/231/Project08.zipProject08.sln, Project08.vcxproj, Project08.vcxproj.filtersProject08.cppMaze Library.lib, Images.dllMaze 01.txt, Maze 02.txt, Maze 03.txtThis program is a Windows executable, nota command-line program. The graphics anduser interface have been designed for youand are included in Maze Library.lib andImages.dll. You will need to compile theprogram using the Microsoft Visual Studio.The zip file also includes three text files thatcontain maze maps to test your program.The mouse maze is stored as a two-dimensional array of cells. A cell has the followingvalues:CELL_OPENOpen space – the mouse can move here.CELL_WALLWall – the mouse can’t move here.CELL_CHEESEOpen space with cheese. After moving the mouse here, the cellchanges toCELL_OPEN.CELL_EXITThe exit of the mazeYou are provided two functions, which are called by the program when it runs:voidmouse_init(intx,inty)This is called when a maze map is loaded.voidmouse_move()This is called each tick of the internal timer.When you select a maze file, the program callsmouse_init(). You are providedaccess to this function in case you need to initialize variables that are global to yourProject08.cpp file.When you start the mouse (select a speed from the Run drop-down), a timer begins.Every tick of the timer, themouse_move()function is called. The sample provided onlyattempts to move the mouse at random. You will develop this function to make yourmouse “smarter” as it searches for the exit.