I'm making a checkers game that will run on the command line. so far this is what i've done. This only the board. and my problem is how to move the pieces. this program must allow teo players to play this game on an 8X8 board.


//Printing of Board
//Red or white
class Checkers{
public static void main(String args[]){
String[][] checkers = new String[8][8];
System.out.println("------------------");


for(int rowcount = 0; rowcount<8; rowcount++){
System.out.print("|");
for(int colcount = 0; colcount<8; colcount++){
if ( rowcount % 2 == colcount % 2 ) {
if (rowcount < 3){
checkers[rowcount][colcount] = "w";
System.out.printf("%s ", checkers[rowcount][colcount]);
}
else if (rowcount > 4){
checkers[rowcount][colcount] = "r";
System.out.printf("%s ", checkers[rowcount][colcount]);
}
else{
checkers[rowcount][colcount]= ".";
System.out.printf("%s ",checkers[rowcount][colcount]);
}
}
else {
checkers[rowcount][colcount]= ".";
System.out.printf("%s ",checkers[rowcount][colcount]);

}

}
System.out.println("|");
}
System.out.println("------------------");
}

}

Guys i'm new in java about 3 months and i need your help BADLY! THANK YOU! :D