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:
- 3:84d9362dffeb
- Parent:
- 2:b14759e704c7
- Child:
- 4:b192d0d47309
--- a/main.cpp Tue Dec 01 01:44:48 2015 +0000 +++ b/main.cpp Tue Dec 01 01:49:25 2015 +0000 @@ -10,7 +10,7 @@ // // declare you globle variable here: unsigned char my_X_coor = 0, my_Y_coor = 0; -unsigned char my_LEDs = ((X_coor << 8)|Y_coor); +unsigned char my_LEDs = 0x1A; unsigned char other_X_coor = 0, other_Y_coor = 0; int friendly [6][6]; // array to determine friendly location @@ -40,7 +40,7 @@ // 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; - // x = hit + // * = hit // o = miss // > = your ship ship @@ -59,10 +59,10 @@ // Example of running game // F _ O _ > _ _ F _ O _ _ _ _ - // E > _ O _ > _ E _ _ X _ _ _ + // E > _ O _ > _ E _ _ * _ _ _ // D _ _ > _ _ _ D _ _ _ O _ _ // C O _ _ _ _ _ C _ O _ _ _ _ - // B _ X _ O _ _ B _ _ _ X _ _ //X on friendly mean your ship got destroy + // B _ * _ O _ _ B _ _ _ * _ _ //X on friendly mean your ship got destroy // A _ _ _ > _ _ A _ _ _ _ _ _ // 1 2 3 4 5 6 1 2 3 4 5 6 // Friendly Enemy