Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < world.length; i++) {
- for (int j = 0; j < world[i].length; j++) {
- switch (world[i][j]) {
- case 0:
- writeConsole("L");
- break;
- case 1:
- writeConsole("E");
- break;
- case 2:
- writeConsole("W");
- break;
- case 3:
- writeConsole("H");
- break;
- case 4:
- writeConsole("F");
- break;
- }
- if (i == pinguRow && j == pinguColumn) {
- writeConsole("(P)");
- }
- if (j != world[i].length - 1) {
- writeConsole("\t");
- }
- }
- writeConsole("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement