Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. for (int i = 0; i < world.length; i++) {
  2. for (int j = 0; j < world[i].length; j++) {
  3.  
  4. switch (world[i][j]) {
  5. case 0:
  6. writeConsole("L");
  7. break;
  8. case 1:
  9. writeConsole("E");
  10. break;
  11. case 2:
  12. writeConsole("W");
  13. break;
  14. case 3:
  15. writeConsole("H");
  16. break;
  17. case 4:
  18. writeConsole("F");
  19. break;
  20. }
  21.  
  22. if (i == pinguRow && j == pinguColumn) {
  23. writeConsole("(P)");
  24. }
  25.  
  26. if (j != world[i].length - 1) {
  27. writeConsole("\t");
  28. }
  29.  
  30. }
  31.  
  32. writeConsole("\n");
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement