Esempio n. 1
0
        public override List <Position> getAvailableMoves()
        {
            AbstractMove    am1  = new RookMoves(this);
            AbstractMove    am2  = new BishopMoves(this);
            List <Position> list = new List <Position>();

            list.AddRange(am1.getAllMoves());
            list.AddRange(am2.getAllMoves());
            return(list);
        }
Esempio n. 2
0
        public override List <Position> getAvailableMoves()
        {
            AbstractMove am = new RookMoves(this);

            return(am.getAllMoves());
        }