Spring 2014, ECE 4180 project, Georgia Institute of Technolgoy. This is the autonomous driver program for the Robotics Cat and Mouse program.

Dependencies:   IMUfilter ADXL345_I2C mbed ITG3200 USBHost mbed-rtos

Revision:
1:dacf7db790f6
Child:
3:0a6e4d139b86
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GameCode.h	Wed Apr 30 05:54:17 2014 +0000
@@ -0,0 +1,20 @@
+#define THRESHOLD 100
+
+Serial pc(USBTX, USBRX);
+
+bool gameOver = false;
+
+bool isGameOver(short x_hum, short y_hum, short x_cpu, short y_cpu)
+{
+    if(abs(x_hum - x_cpu) < THRESHOLD && abs(y_hum - y_cpu) < THRESHOLD) {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+void endGame()
+{
+    pc.printf("GAME OVER\n\r");
+    exit(1);
+}
\ No newline at end of file