示例#1
0
    //
    public override Card[] nextBid(ActiveQuest quest)
    {
        Card[] submit = null;
        if (quest.getHighestBid() > hand.Length)
        {
            return(submit);
        }

        for (int i = 0; i < hand.Length; i++)
        {
            if (hand [i].getType().Equals("foe") && hand[i].getBP() <= 20)
            {
                submit = hp.addCard(submit, hand [i]);
                if (submit.Length > quest.getHighestBid())
                {
                    return(submit);
                }
                else
                {
                    //quest.deletePlayer(player);
                    return(null);
                }
            }
            else
            {
                if (quest.getCurrentTestPhase() == 1 && hp.numberOfCardInstancesInHand(hand, hand[i]) > 1)
                {
                    submit = hp.addCard(submit, hand [i]);
                }
            }
        }
        return(null);
    }