Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
85:87bc28b151d8
Parent:
82:3211b31e9421
--- a/People/People_test.h	Tue May 26 14:39:45 2020 +0000
+++ b/People/People_test.h	Tue May 26 19:38:48 2020 +0000
@@ -8,7 +8,7 @@
  * @return true if test are passed 
  */
 bool people_draw_test(Direction d_, int expected_pixel_status, int expected_x){
-    // Objects reqired for test 
+    // Objects required for test 
     Gamepad pad;
     Map map;
     People people;
@@ -32,7 +32,7 @@
     int actual_pixel_status = lcd.getPixel(people_pos.x + 1, 
     people_pos.y + 1);
     
-    // Checks if pixel is drawn and therefor testing it hasnt gone of screen
+    // Checks if pixel is drawn and therefor testing it hasn’t gone of screen
     if (actual_pixel_status ==  expected_pixel_status) {
         printf ( "Passed!\n");
         return true;
@@ -45,7 +45,7 @@
 
 bool check_alien_collision_test(bool expected_collision, int expected_x){
     
-    // Objects reqired for test 
+    // Objects required for test 
     Alien alien;
     People people;
     Gamepad pad;
@@ -55,13 +55,13 @@
     
     printf("collision =  %s : " ,expected_collision ? "true" : "false");
     
-    // Initialise alien to people posision
+    // Initialise alien to people position
     alien.init(pad,expected_x,43);
     
     // Checks collision function
     bool actual_collision = people.check_alien_collision(alien);
     
-    // Checks if collision is espected 
+    // Checks if collision is expected 
     if (actual_collision == expected_collision) {
         printf ( "Passed!\n");
         return true;
@@ -72,4 +72,4 @@
         return false;
     } 
 }
-#endif
\ No newline at end of file
+#endif