ReePrime
Develop TicTacToe game in Android Studio

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Develop TicTacToe game in Android Studio

N
Nafe

5 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
}