Yet Another Tic Tac Toe by HomineLudens

Dependencies:   PokittoLib

Fork of YATTT by Homine Ludens

Revision:
1:cdc038225cf5
Parent:
0:a92a22490aaa
--- 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
+}