change to final_test
Dependencies: 4DGL-uLCD-SE EthernetInterface HTTPClient mbed-rtos mbed
Fork of Fianl_test by
Diff: main.cpp
- Revision:
- 4:e928ee72a948
- Parent:
- 3:b834ab4a53d1
--- a/main.cpp Mon Apr 27 17:38:55 2015 +0000 +++ b/main.cpp Fri May 01 02:39:55 2015 +0000 @@ -20,7 +20,6 @@ DigitalIn in7(p18); DigitalIn in8(p19); -Mutex stdio_mutex; @@ -359,9 +358,12 @@ break; // game over // wait for turn while(GetCurrentPlayer(gameId) != playerId){ wait(1.5); } - GetBoardState(gameId, board.get_board()); printBoard(board.get_board()); + + state = GetGameState(gameId); + if (state == OVER) + break; int moveX, moveY; ScanForMove(&moveX,&moveY, board.get_board()); PostMove(playerId, gameId, moveX, moveY);