Package csa.jportal.ai.enhancedAI.enhancedSim

Examples of csa.jportal.ai.enhancedAI.enhancedSim.CardSimList.sortListByManaCost()


        if (list==null) return null;
        if (list.size()==0) return null;

        CardSimList subList = list.sortListByPower();
        subList = subList.getSubPowerEqual(subList.getCard(subList.size()-1).getNowPower());
        subList = subList.sortListByManaCost();
        return subList.getCard(subList.size()-1);
    }

    /** a Creature which can be killed with given damage, highest possible toughness to be reduced to zero
     * <BR><b>No Hint required</b><BR>
View Full Code Here


                        }
                    }
                    if (testMana)
                        l = onlyEnoughManaGeneral(l, lands);

                    l = l.sortListByManaCost();
                    if (l.size()>0)
                    {
                        result = l.getCard(l.size()-1);
                    }
                    break;
View Full Code Here

                    // NOT LAND
                    nothingList = AIHelper.removeWithHint(nothingList, "EFFECT_PLAYER_LIBRARY_LAND_TO_HAND");
                    nothingList = AIHelper.removeWithHint(nothingList, "ADD_LAND_FROM_LIBRARY");
*/
                    CardSimList l = nothingList;
                    l=l.sortListByManaCost();
                    if (l.size()>0)
                    {
                        result = l.getCard(csa.Global.getRand().nextInt(l.size()));
                    }
                    break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.