-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhuggers.h
18 lines (14 loc) · 835 Bytes
/
huggers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* File : huggers.h
By : Nathan Lam
Login : nathancy
Team : Hot Wings
Date : 5/6/2015 */
/* This file contains the prototypes for the right and left wall
hugger functions. */
#include <stdio.h>
/* Function is indirectly given the direction and coordinates, and directly given the walls. It checks the surrounding walls in the next direction
for each scenario and moves the mouse by hugging the right wall. */
void right_hugger(int *dir, int *x, int *y, int north, int east, int west, int south);
/* Function is indirectly given the direction and coordinates, and directly given the walls. It checks the surrounding walls in the next direction
for each scenario and moves the mouse by hugging the left wall. */
void left_hugger(int *dir, int *x, int *y, int north, int east, int west, int south);