Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BMI160 SPI_STMPE610 USBDevice UniGraphic max32630fthr
maze.h
- Committer:
- Rhyme
- Date:
- 2017-09-22
- Revision:
- 3:43de31beea45
- Parent:
- 0:a4d7417f7672
File content as of revision 3:43de31beea45:
#ifndef _MAZE_H_ #define _MAZE_H_ defined #define MAZE_W 20 #define MAZE_H 20 #define POS_PATH 0 #define POS_WALL 1 #define POS_START 2 #define POS_GOAL 3 uint8_t maze[MAZE_H][MAZE_W] = { {1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1}, {1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,1,0,1}, {1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,0,1}, {1,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,1,0,1}, {1,0,1,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1}, {1,0,1,0,0,0,1,0,1,1,0,1,0,1,0,0,1,1,0,1}, {1,0,1,0,1,1,1,0,0,1,0,1,0,1,0,1,1,1,0,1}, {1,0,1,0,1,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1}, {1,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,1}, {1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1}, {1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1}, {1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1}, {1,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1}, {1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1}, {1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1}, {1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1} } ; extern void doMaze(void) ; #endif // _MAZE_H_