Created
February 16, 2020 16:02
-
-
Save bkyrlach/16fe2f8ac45e027717bd8505b3000997 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
| List<List<Piece>> board = new ArrayList<List<Piece>>(); | |
| for(int i = 0; i < 3; i++) { | |
| List<Piece> row = new ArrayList<Piece>(); | |
| board.add(row); | |
| for(int j = 0; j < 3; j++) { | |
| row.add(Piece.SPACE); | |
| } | |
| } | |
| for(int i = 0; i < 3; i++) { | |
| List<Piece> row = board.get(i); | |
| for(int j = 0; j < 3; j++) { | |
| System.out.print(row.get(j)); | |
| } | |
| System.out.println(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment