Last active
January 3, 2016 01:09
-
-
Save tarynsauer/8387532 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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