Ejemplo n.º 1
0
 //Return the character representing the piece currently on the coordinate; returns I if the coordinate is invalid
 public char getPiece(game target)
 {
     //Check if the coordinate is valid
     if (x > 7 || y > 7 || x < 0 || y < 0)
     {
         return('I');
     }
     else
     {
         return(target.board[x, y]);
     }
 }
Ejemplo n.º 2
0
 public movingEngine(game target)
 {
     toAnalyze = target;
 }