Question: Java programming Othello Board Game! I need a J-Unit test case for this bit of code ____ /** * This takes the coordinates of a

Java programming

Othello Board Game!

I need a J-Unit test case for this bit of code ____

/**

* This takes the coordinates of a spot on the board & sets the piece at that

* place to the player that is passed into the method

*

* @param x - the x coordinate of the spot

* @param y - the y coordinate of the spot

* @param player - the value of the player (1 or 2 if a player, 0 if empty)

*/

public void setPlyr(int x, int y, int player) {

boardPieces[x][y] = player;

}

public void nextPlyr() {

if (currPlyr == 1) {

otherPlyr = currPlyr;

currPlyr = 2;

} else {

otherPlyr = currPlyr;

currPlyr = 1;

}

}

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 Databases Questions!