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
Diff: main.cpp
- Revision:
- 1:3f7aa28da00d
- Parent:
- 0:4abb197a773c
- Child:
- 2:b14759e704c7
--- a/main.cpp Tue Dec 01 00:49:17 2015 +0000 +++ b/main.cpp Tue Dec 01 01:08:16 2015 +0000 @@ -29,6 +29,36 @@ // this thread use to update the game board void game_view_update () { // update the by led game update + // Uart runing at 921600 max speed; hopefully print 1 line and out; + // x = hit + // o = miss + // > = your ship ship + + // BLANK game Board + // F _ _ _ _ _ _ F _ _ _ _ _ _ + // E _ _ _ _ _ _ E _ _ _ _ _ _ + // D _ _ _ _ _ _ D _ _ _ _ _ _ + // C _ _ _ _ _ _ C _ _ _ _ _ _ + // B _ _ _ _ _ _ B _ _ _ _ _ _ + // A _ _ _ _ _ _ A _ _ _ _ _ _ + // 1 2 3 4 5 6 1 2 3 4 5 6 + // Friendly Enemy + + // Example of running game + // F _ O _ > _ _ F _ O _ _ _ _ + // E > _ O _ > _ E _ _ X _ _ _ + // D _ _ > _ _ _ D _ _ _ O _ _ + // C O _ _ _ _ _ C _ O _ _ _ _ + // B _ X _ O _ _ B _ _ _ X _ _ + // A _ _ _ > _ _ A _ _ _ _ _ _ + // 1 2 3 4 5 6 1 2 3 4 5 6 + // Friendly Enemy + // Turn 1 = miss at 2F + // Turn 2 = Destroy Enemy battle ship at 3E + // Turn 3 = miss at 4D + // Turn 4 = miss at 2C + // Tunr 5 = Destroy Enemy battle ship at 4B + } // code here to check for winer and turn on the RGB