Question: help me solve step by step, this is a fill in the blank not a make a new project. I need help with getting the

help me solve step by step, this is a fill in the blank not a make a new project. I need help with getting the token (i.e line 166) but would also like a lookover on anything that needs to be fixed and how. lines 311-361 will have to be typed as 5 pictures is the max. for any recommended changes/fixes it would be greatly appreciated if it was labeled under each function.
count += countTokens (lastToken,-rowDir, -colDir); return count >=4;
throw new UnsupportedOperationException("isWinner: not yet implemented
}// isLastDropConnectFour
private int countTokens (Token token, int rowDir, int colDir){
int count =0;
int row = this.lastDropRow + rowDir;
int col = this.lastDropCol + colDir;
while (isInBounds(row, col) && this-grid[row][col]= token){
count++;
row += rowDir; col += colDir;
return count;
}
ADDITIONAL METHODS: If you create any additional methods, then they should be space provided below.
/**
public void debug(){
System.out-println ("rows: %d
", rows);
System. out-println("cols: %d
", cols);
System. out println("LastDropRow: %d
", LastDropCol);
System.out println("numDropped: %d
", numDropped);
System.out-println("phase: %dyn", phase.toString());
System.out-println("player: [%s,%s]
", player[0], player(1]);
printGrid();
}
}
//
//
DO NOT MODIFY THE METHODS BELOW!
/**
* DO NOT MODIFY:
* Print the game grid to standard output. This method assumes that the constructo
* is implemented correctly.
*
*
>
*strong>NOTE: This method should not be modified!
*/
public void printGrid(){
TokenGrid. println(this.grid);
help me solve step by step, this is a fill in the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!