Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void paulBadApproach () {
- String[] x = {"\\ /", " \\/ ", " /\\", "/ \\"};
- String[] o = {" oo ", "O O", "O O", " oo "};
- //StringBuilder[] response = new StringBuilder[12];
- String[] response = new String[12];
- for (int i = 0; i < response.length; i++) {
- response[i] = " | | ";
- }//Initializing the blank board.
- for (String s : x) {
- System.out.println(s);
- }
- for (int row = 0; row < 3; row++) {
- //StringBuilder line = new StringBuilder(" | | ");
- for (int column = 0; column < 3; column++) {
- //char c = test[row][column];
- char c = ' ';
- switch (c) {
- case ' ':
- break;
- case 'X':
- int lineInResponse = row*4;
- int columnInResponse = column*4;
- for (int i = 0; i < 4; i++) {
- //response[row].insert(columnInResponse, x[i]);
- }
- break;
- }
- }
- }
- int line = 0;
- while (line < 4) {
- System.out.println(response[line]);
- line++;
- }
- System.out.println("--------------");
- while (line < 8) {
- System.out.println(response[line]);
- line++;
- }
- System.out.println("--------------");
- while (line < 12) {
- System.out.println(response[line]);
- line++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement