A C++ Sample Project in which a cat and a mouse both traverse a maze in order to capture their lunch
- The mouse uses the A* pathfinding algorithm to get to the cheese.
- If the mouse is within the cat's line of sight, it will move towards it, otherwise it will move in a random available direction other than where it just came from
These instructions assume you are compiling in Windows and have Visual Studio installed with 'Desktop development with C++' checked. Otherwise, you can compile with your preferred compiler.
- Navigate to the folder containing the project in a developer command line
- Run
cl /EHsc maze-simulation.cppto compile the project - Run
maze-simulation.exeto view the outcome of the simulation
The A* code was built with reference to the example code from geeksforgeeks.org