public void drop(){
int totalTurns = 0;
while(totalTurns <= 7){
System.out.println("What column would you like to drop a piece into?: ");
Scanner scannerBoard = new Scanner(System.in);
int columnInput = scannerBoard.nextInt();
if(columnInput <= makeArray[0].length){
makeArray[rows-1][columnInput-1] = 'x';
}
totalTurns = totalTurns + 1;
}
return;
}
I'm making a connect 4 project and I'm trying to make a method that adds a "piece" being dropped into the board. The 8th line shows me adding the character 'x', to the last row and column of an integer I input. If I input 3, two times, how would I get the second "piece" to be dropped not on the bottom row, but the row above it?