Exemplo n.º 1
0
 static bool KnightCanMove(DataStructure.Point possition, int[,] boardMatrix, DataStructure.Color color)
 {
     if (Validation.IsEmpty(possition, boardMatrix))
     {
         return(true);
     }
     else
     {
         if (Validation.IsOpponent(possition, boardMatrix))
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 public static Color ProtoToUnity(DataStructure.Color c)
 {
     return(new Color((float)c.R, (float)c.G, (float)c.B, (float)c.A));
 }