You are on page 1of 2

import java.util.

Scanner;

public class AjedrezPar1 {

Scanner sc = new Scanner(System.in);

int [][] tf = {{+4,+2,+3,+0,+5,+6,+4,+1},

{0, 0, 0, 1, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 0, 0, 0},

{0, 0, 0, 1 ,0, 0, 0, 0},

{0, 0, 0, 1, 0, 0, 0 ,0},

{0, 0, 0, 1, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 0, 0, 0},

{-3,-2,-5,-4,-1,-2,-3,-8,}};

//tf significa tablero y fichas//

//los números positivos son los blancos y los negativos son los negros//

for (int i = 0; i<tf.length; i++){

for (int j = 0; j < tf[i].length; j++){

System.out.print("" + tf[i][j]");

System.out.print("");

public static void main(String[] args) {

}
}

You might also like