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 }
Hãy là người đầu tiên nhận xét