Examples of addScore()


Examples of csa.jportal.ai.helper.Scoring.addScore()

                    killAllFormation.singleFights.add(s);
                }
                if (killAllFormation.singleFights.size() > 0)
                {
                    killAllScore = difScoreFormation(killAllFormation, match, player, oldScore, weighting);
                    score.addScore(killAllScore, killAllFormation);
                }
            }

            //3) Kill all with no dead, take damage -> score
            CombatFormation killTakeDamageFormation = new CombatFormation();
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

                    killTakeDamageFormation.singleFights.add(s);
                }
                if (killTakeDamageFormation.singleFights.size() > 0)
                {
                    killKeepDamageScore = difScoreFormation(killTakeDamageFormation, match, player, oldScore, weighting);
                    score.addScore(killKeepDamageScore, killTakeDamageFormation);
                }
            }

            // 4) Block allpossible with No dead -> score
            CombatFormation blockNoDeadAll = new CombatFormation();
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

                    blockNoDeadAll.singleFights.add(s);
                }
                if (blockAll)
                {
                    blockNoDeadAllScore = difScoreFormation(blockNoDeadAll, match, player, oldScore, weighting);
                    score.addScore(blockNoDeadAllScore, blockNoDeadAll);
                }
            }

            // 5) Block as much as possible with no dead, take damage -> score
            CombatFormation blockNoDead = new CombatFormation();
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

                    blockNoDead.singleFights.add(s);
                }
                if (blockNoDead.singleFights.size() > 0)
                {
                    blockNoDeadScore = difScoreFormation(blockNoDead, match, player, oldScore, weighting);
                    score.addScore(blockNoDeadScore, blockNoDead);
                }
            }

            // 6) Block has much as possible, deaths dont matter, take damage -> score
            CombatFormation blockManyFormation = new CombatFormation();
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

                    // try to kill attackers with
                    // left over blockers.
                    addToKill(blockManyFormation, blockerTest);
                }
                blockMany = difScoreFormation(blockManyFormation, match, player, oldScore, weighting);
                score.addScore(blockMany, blockManyFormation);
            }

            // 7) Kill in expansive order, take rest damage -> score
            CombatFormation killExpansiveFormation = new CombatFormation();
            killExpansiveFormation.name = "killExpansiveFormation";
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

                    killExpansiveFormation.singleFights.add(s);
                }
                if (killExpansiveFormation.singleFights.size() > 0)
                {
                    killExpansiveScore = difScoreFormation(killExpansiveFormation, match, player, oldScore, weighting);
                    score.addScore(killExpansiveScore, killExpansiveFormation);
                }
           }

            // 8) block in expansive order, kill in cheapest order, take damage -> score
            CombatFormation blockExpansiveFormation = new CombatFormation();
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

                    // try to kill attackers with
                    // left over blockers.
                    addToKill(blockExpansiveFormation, blockerTest);
                }
                blockExpansiveMany = difScoreFormation(blockExpansiveFormation, match, player, oldScore, weighting);
                score.addScore(blockExpansiveMany, blockExpansiveFormation);
            }

            // 9) take all damage -> score
            CombatFormation takeAllDamageFormation = new CombatFormation();
            takeAllDamageFormation.name = "takeAllDamageFormation";
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

            // 9) take all damage -> score
            CombatFormation takeAllDamageFormation = new CombatFormation();
            takeAllDamageFormation.name = "takeAllDamageFormation";
            int takeAllDamageScore = difScoreFormation(null, match, player, oldScore, weighting);
            score.addScore(takeAllDamageScore, takeAllDamageFormation);
            simpleFormation = (CombatFormation) score.getHighScoreTypeObject();

            for (int a = 0; a < mToBeAddedAttackers.size(); a++)
            {
                CardSim attacker = mToBeAddedAttackers.getCard(a);
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

                greenNeed+=2;
        }
       
       
        Scoring sc = new Scoring();
        sc.addScore(redNeed, "R");
        sc.addScore(blackNeed, "B");
        sc.addScore(blueNeed, "U");
        sc.addScore(greenNeed, "G");
        sc.addScore(whiteNeed, "W");
        //sc.sort();
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.addScore()

        }
       
       
        Scoring sc = new Scoring();
        sc.addScore(redNeed, "R");
        sc.addScore(blackNeed, "B");
        sc.addScore(blueNeed, "U");
        sc.addScore(greenNeed, "G");
        sc.addScore(whiteNeed, "W");
        //sc.sort();
        String neededColor = sc.getHighScoreTypeString();
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.