예제 #1
0
        public override List <Tuple <int, int> > GetCapturable()
        {
            var captures = DiagonalStrategies.GetCapturable()
                           .Concat(RowStrategies.GetCapturable())
                           .Concat(ColumnStrategies.GetCapturable()).ToList();

            return(captures);
        }
예제 #2
0
        public override IEnumerable <Tuple <int, int> > GetMoveSet(int row, int col, PieceColor opposingPlayer)
        {
            var strats = DiagonalStrategies.GetMoveSet(row, col, opposingPlayer)
                         .Concat(RowStrategies.GetMoveSet(row, col, opposingPlayer))
                         .Concat(ColumnStrategies.GetMoveSet(row, col, opposingPlayer)).ToList();

            return(strats);
        }