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:
4:b192d0d47309
Parent:
3:84d9362dffeb
Child:
6:0f60a4070f09
--- a/main.cpp	Tue Dec 01 01:49:25 2015 +0000
+++ b/main.cpp	Thu Dec 03 09:43:48 2015 +0000
@@ -1,6 +1,7 @@
 #include <iostream>
 #include "mbed.h"
 #include "cmsis_os.h"
+#include "game_board.h" //duck soup
 using namespace std;
 
 //declare your input pin and output pin here:
@@ -26,6 +27,17 @@
     //send my_X_coor and my_Y_coor if the center button is hit
     //receive other board x_coor and y_coor
     //spi code here
+    //turn 1 :friendly
+    //       player1 send shooting location
+    //       player1 get shooting location and whether it hit or miss
+    //turn 1 :enemy
+    //       get enemy shooting location
+    //       check wheather is it a hit or miss
+    //       echo enemy shooting location and hit/miss flag
+    //send out winner status 
+    //       0 = still no winner
+    //       1 = i am lose
+    //       so if you receive a 1 that mean you win
 }
 
 // joystick update x_coor and y_coor here
@@ -40,6 +52,8 @@
     // board of this game will be a class this update and get info to and from the class
     // update the by led game update
     // Uart runing at 921600 max speed; hopefully print 1 line and out;
+    // using an interger then cycle through the get string function to put it inti the printf function
+    
     // * = hit
     // o = miss
     // > = your ship ship
@@ -76,7 +90,7 @@
 
 // code here to check for winer and turn on the RGB
 void winnercheck (void const *args) {
-    //check for winner by some condition
+    //check for winner by destroy all enemy ship;
 }
 
 //read the accele
@@ -102,6 +116,9 @@
     //
     //
     //
+    // create a initialize thread with the key
+    // if key is 0 run the initialize the change key to 1
+    // if key is 1 then get do nothing and get out
     
     //note game initialize and setup upon shake the board