Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. public static void paulBadApproach () {
  2. String[] x = {"\\ /", " \\/ ", " /\\", "/ \\"};
  3. String[] o = {" oo ", "O O", "O O", " oo "};
  4.  
  5. //StringBuilder[] response = new StringBuilder[12];
  6.  
  7. String[] response = new String[12];
  8.  
  9. for (int i = 0; i < response.length; i++) {
  10. response[i] = " | | ";
  11. }//Initializing the blank board.
  12.  
  13. for (String s : x) {
  14. System.out.println(s);
  15. }
  16.  
  17. for (int row = 0; row < 3; row++) {
  18. //StringBuilder line = new StringBuilder(" | | ");
  19. for (int column = 0; column < 3; column++) {
  20. //char c = test[row][column];
  21. char c = ' ';
  22. switch (c) {
  23. case ' ':
  24. break;
  25.  
  26. case 'X':
  27. int lineInResponse = row*4;
  28. int columnInResponse = column*4;
  29. for (int i = 0; i < 4; i++) {
  30. //response[row].insert(columnInResponse, x[i]);
  31.  
  32. }
  33. break;
  34. }
  35. }
  36. }
  37. int line = 0;
  38. while (line < 4) {
  39. System.out.println(response[line]);
  40. line++;
  41. }
  42. System.out.println("--------------");
  43. while (line < 8) {
  44. System.out.println(response[line]);
  45. line++;
  46. }
  47. System.out.println("--------------");
  48. while (line < 12) {
  49. System.out.println(response[line]);
  50. line++;
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement