Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. public class Map {
  2.  
  3.     static int mapa1 [][] = new int[11][11];
  4.  
  5.     static int mapa2 [][] = new int[11][11];
  6.  
  7.     public static void initMap(){
  8.         for(int i = 0; i < 10; i++){
  9.             for(int j = 0; j < 10; j++){
  10.                 mapa1[i][j] = 0;
  11.                 mapa2[i][j] = 0;
  12.             }
  13.         }
  14.     }
  15.  
  16.     public static void placingShips(){
  17.         int random = Random.RInt(1, 10);
  18.         System.out.println("Random: " + random);
  19.         mapa1[random][random] = Ships.ship1();
  20.         //mapa1[Mechanics.podajX()][Mechanics.podajY()] = Ships.ship1();
  21.     }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement