An open API service indexing awesome lists of open source software.

https://github.com/nathancy/micromouse-simulator

Micromouse simulator with four levels written in C
https://github.com/nathancy/micromouse-simulator

c maze micromouse-simulator mouse simulator

Last synced: 4 months ago
JSON representation

Micromouse simulator with four levels written in C

Awesome Lists containing this project

README

          

# Micromouse-simulator
Micromouse simulator with four levels.

```
Demo video. Watch in 1440 HD!
```

[![Micromouse Simulator Video](doc/micromouse_youtube.PNG)](https://www.youtube.com/watch?v=Nb8YTFCTzjM "Micromouse Simulator - Click to Watch!")

### Level 0: Drive the Mouse
You may use w,s,a,d commands in the predefined visible maze to control the mouse. Features:

* w - up
* s - down
* a - left
* d - right
* Entire maze is visible

![](doc/level0.JPG)

### Level 1: Mouse Discovers
You may use Level 0 commands, r, l, and m, commands in the predefined hidden maze. Features:

* r - right wall hugger
* l - left wall hugger
* m - show maze
* Mousecam
* Cell counter

![](doc/level1.JPG)

### Level 2: Mouse Explores
You may use Level 1 commands and the n command.

* n - hide maze
* Unique cell count

![](doc/level2.JPG)

### Level 3: Da Frills
You may use all above commands and the space command.

* Space - random movement (drunken mouse)

Additional Frills:
- Default level is 0
- In level 2 and above, a new maze map is available
- Hidden easter eggs

![](doc/level3.JPG)

# Developers Guide
Clone the repository with:
```
git clone https://github.com/nathancy/Micromouse-simulator.git
cd Micromouse-simulator
```
Build the simulator with:
```
make mazerunner
```
Run the simulator with:
```
mazerunner
```

Note: The simulator runs best in an 80 col x 48 line window. If your screen is too small, the maze may not appear correctly. Note "display.o" is purposely in the repository as the original source file was lost.