This is THE 447 FINAL PROJECT this is the frame work put your code in the spot where the it suppose to go and. Make sure you import this into your complier and work on your section, once you done just commit the changes and fork to a new folder

Dependencies:   mbed-rtos mbed draw_test EALib SWSPI

Revision:
10:1d1834c6715d
Parent:
9:e6f3edc7f775
--- a/main.cpp	Mon Dec 07 09:54:52 2015 +0000
+++ b/main.cpp	Mon Dec 07 22:10:37 2015 +0000
@@ -287,7 +287,7 @@
 {
     //check for winner by destroy all enemy ship;
     while (true) {
-        bool gamelost;
+        bool gamelost = 0;
         gamelost = battle.looser();
         //winner = 1;
         if (gamelost == 1) {
@@ -295,6 +295,10 @@
             led2 = 1;
             led3 = 1;
             xbee.printf("W0000E");
+            while(winner == 0)
+            {
+                osDelay(30);
+            }
             //this board is loser
             //send a message of 0x200 to the winner
         } else if (winner == 1) { //spi message is the winner)