Mouse code for the MacroRat
Diff: main.h
- Revision:
- 31:9b71b44e0867
- Parent:
- 30:11f4316a5ba7
- Child:
- 32:69acb14778ea
diff -r 11f4316a5ba7 -r 9b71b44e0867 main.h --- a/main.h Wed May 24 02:40:36 2017 +0000 +++ b/main.h Wed May 24 21:47:21 2017 +0000 @@ -111,7 +111,7 @@ stack< pair<int, int> > cellsToVisit; -int currDir = 102; // modulo this to keep track of the current direction of the mouse! +int currDir = 100; // modulo this to keep track of the current direction of the mouse! // 0 = forward, 1 = right, 2 = down, 3 = left int wallArray[16][16] = {0}; // array to keep track of the walls int visitedCells[16][16] = {0}; // array to keep track of the mouse's current location