Skip to content

video not played or not found error
click on direct switch

Hosted by Dailymotion. For legal issues: Copyright Center · DMC · Instant Removal

Develop TicTacToe game in Android Studio

N
Nafe

6 Views • Nov 20, 2017

Description

Video shows you how to make simple TicTacToe game for two players (no AI) for Android.\r
\r
- I forgot one of the diagonals. Please add following code to the winning logic:\r
\r
if (g.equals(X)) && e.equals(X) && c.equals(X)){\r
Toast.makeText(MainActivity.this, Winner Player X!, Toast.LENGHT_LONG).show();\r
end = true;\r
}\r
\r
if (g.equals(O)) && e.equals(O) && c.equals(O)){\r
Toast.makeText(MainActivity.this, Winner Player O!, Toast.LENGHT_LONG).show();\r
end = true;\r
}