Final Commit

Dependencies:   mbed

Revision:
6:f3f508cea1c4
Parent:
5:27fcb9b36e7e
Child:
7:c38800a428a6
--- a/Food/Food.cpp	Tue Mar 13 09:42:49 2018 +0000
+++ b/Food/Food.cpp	Fri Mar 16 13:02:55 2018 +0000
@@ -11,19 +11,19 @@
 
 }
 
-Position Food::get_position()
+Vector2D Food::get_position()
 {
-    Position p = {_x,_y};
+    Vector2D p = {_x,_y};
     
     return p;
 }
 
-void Food::set_position(Position p) 
+void Food::set_position(Vector2D p) 
 {
     srand(time(NULL));
     
-    _x = 8;
-    _y = 4;
+    _x = rand() % 84;
+    _x = rand() % 48;
     
     _x = p.x;
     _y = p.y;