Exemplo n.º 1
0
 private void SetMovesForSelectedPiece()
 {
     if (!IsPieceSelected())
     {
         return;
     }
     _attacks.AddRange(_selectedPiece.GetAvailableAttacks(Pieces));
     _moves.AddRange(_selectedPiece.GetAvailableMoves(Pieces));
     _allAvailableMoves.AddRange(_attacks);
     _allAvailableMoves.AddRange(_moves);
 }