Final Commit

Dependencies:   mbed

Revision:
11:e260c17a0489
Parent:
10:62d8cb7742c3
Child:
12:9f2f64016f56
--- a/main.cpp	Wed Apr 04 12:25:51 2018 +0000
+++ b/main.cpp	Fri Apr 06 15:15:50 2018 +0000
@@ -31,7 +31,7 @@
 Gamepad pad;
 Snake snake;
 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
-Testing test;
+Testing test1;
 
 // ----- Prototypes -----
 
@@ -55,17 +55,29 @@
          
                
   
-    if(test.direction_test()) {
-        
-        printf("Passed direction test \n");
+
+    /*    
+    if(test1.update_snake_test(W, E)) {
         
-        }
-        
-        else {
-            
-            printf("Failed direction test \n");
+        printf("Passed direction test1 \n");
             
             }
+    else {
+            
+        printf("Failed direction test \n");
+            
+          }*/
+          
+    if(test1.position_test(W, E)) {
+        
+        printf("Passed position test1 \n");
+            
+            }
+    else {
+            
+        printf("Failed position test \n");
+            
+          }    
         
         }
     }