Final Submission. I have read and agreed with Statement of Academic Integrity.

Dependencies:   mbed Gamepad N5110 Joystick

Revision:
3:660de4311976
Parent:
2:0bd6711eae26
Child:
4:0fc3441556e1
diff -r 0bd6711eae26 -r 660de4311976 main.cpp
--- a/main.cpp	Wed May 08 21:26:27 2019 +0000
+++ b/main.cpp	Thu May 09 00:19:35 2019 +0000
@@ -22,7 +22,9 @@
 // Instances
 GameEngine engine;
 
+
 int main() {
+    srand(time(NULL));
     Init(); 
     Welcome();
     engine.init();
@@ -33,6 +35,7 @@
         render();
         engine.get_dir(gamepad);
         engine.snake_move();
+        engine.food_move();
     }
 }
 
@@ -67,5 +70,5 @@
     lcd.clear();
     engine.draw(lcd);
     lcd.refresh();
-    wait(1.0);
+    wait(0.2);
 }
\ No newline at end of file