How do I go about calculating possible moves in Reversi without having to write 8 helper methods going through each of the direction.

I know I have to first chck the direction I need to check. I have that helper method. If the adjacent square has opposite color return something to represent that direction..



How do I make a helper method that goes over that