Yet Another Tic Tac Toe for Pokitto
Dependencies: PokittoLib mbed-src
Revision 1:cdc038225cf5, committed 2017-10-04
- Comitter:
- HomineLudens
- Date:
- Wed Oct 04 09:03:13 2017 +0000
- Parent:
- 0:a92a22490aaa
- Commit message:
- YATT ok
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a92a22490aaa -r cdc038225cf5 main.cpp --- a/main.cpp Wed Oct 04 07:39:16 2017 +0000 +++ b/main.cpp Wed Oct 04 09:03:13 2017 +0000 @@ -453,12 +453,12 @@ } } - //Draw player symbol at top/right corner Sign playerSign; playerSign.symb=players[playerTurn].symb; playerSign.x=disp.width-(SIGN_SIZE/2); playerSign.y=SIGN_SIZE/2; + playerSign.diameter=SIGN_SIZE; drawSign(playerSign); //draw winner list @@ -467,10 +467,8 @@ for (int i=0; i<sizeof(scoreList)/sizeof(Sign); i++) { drawSign(scoreList[i]); } - } - void initGame() { //Center board @@ -488,6 +486,7 @@ for (char x=0; x<setBoardSize; x++) { for (char y=0; y<setBoardSize; y++) { board[x][y].symb=None; + board[x][y].diameter=SIGN_SIZE; } } @@ -526,7 +525,6 @@ players[3].symb=Diamond; players[3].AI=mainMenu[6].value==1; - gameState=InitGame; } @@ -875,4 +873,4 @@ } return 1; -} \ No newline at end of file +}