Skip to content

Instantly share code, notes, and snippets.

View mathieurousseau's full-sized avatar

Mathieu Rousseau mathieurousseau

View GitHub Profile
https://play.google.com/apps/internaltest/4701648549761098209
public class TicTacToe {
public static boolean valid(String[] plays) {
int xCount = 0;
int oCount = 0;
for (String p : plays) {
if (!"x".equals(p) && !"o".equals(p) && !"".equals(p)) {
return false;
}
if ("x".equals(p))