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
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
}
\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
}
More from User
09:12
Tutoriel BD. Faire courir ses personnages.
Nafe
04:06
A super tror helps big fire trucks
Nafe
29:43
EPIC WORLDS STRONGEST ENGINE 50: 64 Thomas and Friends Engines with PLAY DOH SURPRISES
Nafe
07:29
How To Use Rest Pause Training
Nafe
05:43
Moments with Cellspex (slightly updated)
Nafe
10:07
Машинки. Сборник. Пожарная Скорая помощь Полицейская Экскаватор Гоночные. Развивающий мультик.
Nafe
Related Videos
14:38
P1 - C# Developing Tic Tac Toe Game In Urdu - Designing UI
ProgramInUrdu
17:10
How to develop tic-tac-toe game in 15 mins (Part 1) | Channel Codeboard
Codeboard
13:23
P2 - C# Developing Tic Tac Toe Game In Urdu - Adding Basic Functionality
ProgramInUrdu
02:24
[Android] Morpion (Tic Tac Toe) - Version 1.5 - Janvier 2010
Ad974
10:27
Tic Tac Toe Showdown - Android and iOS gameplay PlayRawNow
PlayRawNow
01:17
Unity3D-Android: Water Game Tic Tac Toe
IsGreen