Ahmed Adamjee / Mbed 2 deprecated SnakeVSBlock

Dependencies:   mbed

Revision:
10:751bd953fa27
Parent:
9:d1d79d4ee673
Child:
11:d6ceff1ff6d7
--- a/SnakeFood/SnakeFood.cpp	Wed Mar 27 18:20:36 2019 +0000
+++ b/SnakeFood/SnakeFood.cpp	Sat Mar 30 17:09:18 2019 +0000
@@ -66,7 +66,7 @@
         }
     
      if(n == 0){
-        _fx = rand() % 82;
+        _fx = (rand() % 82);  //change the number here so that there is always an unsurity(a little) if the food will come or not(change the limits for this)
         _fy = 0;
         n = n+1;  
         }