Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Map {
- static int mapa1 [][] = new int[11][11];
- static int mapa2 [][] = new int[11][11];
- public static void initMap(){
- for(int i = 0; i < 10; i++){
- for(int j = 0; j < 10; j++){
- mapa1[i][j] = 0;
- mapa2[i][j] = 0;
- }
- }
- }
- public static void placingShips(){
- int random = Random.RInt(1, 10);
- System.out.println("Random: " + random);
- mapa1[random][random] = Ships.ship1();
- //mapa1[Mechanics.podajX()][Mechanics.podajY()] = Ships.ship1();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement