Exemplo n.º 1
0
        private bool FoiCapturada(Peca peca)
        {
            HashSet <Peca> aux = PecasParaPromo(peca.Cor);

            foreach (Peca p in aux)
            {
                if (p.GetType() == peca.GetType())
                {
                    return(true);
                }
            }
            return(false);
        }