I am set the task of writing part of a C program that will check if the user can move or not.
The program would use a 2d array

arrBoard[8][8]
and counters

#define EMPTY_SQUARE "E"
#define WHITE_SQUARE "W"
#define BMPTY_SQUARE "B"

I know the basic ideas of moves that can be made in the array

--------------------

x+1 | x+1 | x+0 | x-1
y+0 | y-1 | y-1 | y-1

x-1 | x+1 | x+0 | x-1
y+0 | y+1 | y+1 | y+1

-----------------------

I was wondering what the best way to check if the player can move is. Even after reading countless books i dont understand how you can read a position on an array.
Also how to define the edges of the board.

Im verymuch a newbie. (very basic idea of what im doing)

Any help would be appreciated.