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 ie line but would also like a lookover on anything that needs to be fixed and how. lines will have to be typed as pictures is the max. for any recommended changesfixes it would be greatly appreciated if it was labeled under each function.
count countTokens lastTokenrowDir, colDir; return count ;
throw new UnsupportedOperationExceptionisWinner: not yet implemented
isLastDropConnectFour
private int countTokens Token token, int rowDir, int colDir
int count ;
int row this.lastDropRow rowDir;
int col this.lastDropCol colDir;
while isInBoundsrow col && thisgridrowcol 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.outprintln rows: d
rows;
System. outprintlncols: d
cols;
System. out printlnLastDropRow: d
LastDropCol;
System.out printlnnumDropped: d
numDropped;
System.outprintlnphase: dyn phase.toString;
System.outprintlnplayer: ss
player player;
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.
strongNOTE: This method should not be modified!
public void printGrid
TokenGrid. printlnthisgrid;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
