Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Last active January 3, 2016 01:09
Show Gist options
  • Save tarynsauer/8387532 to your computer and use it in GitHub Desktop.
Save tarynsauer/8387532 to your computer and use it in GitHub Desktop.
public class Board {
private int rows = 3;
private String[] cells;
private int[][] winningLines = new int[8][3];
public Board() {
cells = new String[9];
for (int num = 1; num <= (cells.length); num++) {
int i = num - 1;
cells[i] = Integer.toString(num);
}
getWinningLines();
}
public int getRows() {
return rows;
}
public String[] getCells() {
return cells;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment