Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Invocar(int x1, int y1,int x2, int y2,int x3, int y3,int x4, int y4,int x5, int y5,int x6, int y6){
- for (int row = 0; row < 15; row++) {
- for (int column = 0; column < 15; column++) {
- if(row == x1 && column == y1){
- CeldasTablero.MatrizTerreno[x1][y1]=1;
- System.out.println("entré");
- }
- else if(row == x2 && column == y2){
- CeldasTablero.MatrizTerreno[x1][y2]=1;
- }
- else if(row == x3 && column == y3){
- CeldasTablero.MatrizTerreno[x3][y3]=1;
- }
- else if(row == x4 && column == y4){
- CeldasTablero.MatrizTerreno[x4][y4]=1;
- }
- else if(row == x5 && column == y5){
- CeldasTablero.MatrizTerreno[x5][y5]=1;
- }
- else if(row == x6 && column == y6){
- CeldasTablero.MatrizTerreno[x1][y1]=1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement