Question: hi im working on my assignment Reversi/Othello in java. I am lost to how to check the direction. So I have been doing research how

hi im working on my assignment Reversi/Othello in java. I am lost to how to check the direction.

So I have been doing research how to do it.

Here is the part of checking direction for this game.

Please explain why it would write as it since I would like to understand it instead of copying it.

(it is a 6 by 6 board which it is named as playBoard)

hi im working on my assignment Reversi/Othello in java. I am lost

public static int d = {0, 0, 1, 1, 1,-1,-1,-1); public static int dy[] ={1,-1, 0, 1,-1, 0, 1,-1); public static int currentPlayer(int round) { if(round % 2--1X return 1 else return 2 public static boolean checkDirction(int x,int y, int round) int x1 , y1 ; for (int i0, i

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!