Exemplo n.º 1
0
 private void DisplayMovementOptions(ChessPiece piece)
 {
     foreach (int[] location in ChessPieces.GetAllMovementOptions()[ChessPieces.GetAlliedPiecesRemaining().IndexOf(piece)])
     {
         InstantiateMovementBox("Movement", location[0], location[1]);
     }
 }
Exemplo n.º 2
0
 private bool CanMove(ChessPiece piece)
 {
     return(ChessPieces.GetNumberOfMovementOptions(ChessPieces.GetAlliedPiecesRemaining().IndexOf(piece)) > 0);
 }