diff --git a/src/main/java/com/fossgalaxy/games/fireworks/FunPlayer.java b/src/main/java/com/fossgalaxy/games/fireworks/FunPlayer.java index 66d63eccfdaddf09cb36ec657eaf0024d8a8c647..57c49d1d3a257f252eb3e06d4ddea9f30760f299 100644 --- a/src/main/java/com/fossgalaxy/games/fireworks/FunPlayer.java +++ b/src/main/java/com/fossgalaxy/games/fireworks/FunPlayer.java @@ -3,6 +3,7 @@ package com.fossgalaxy.games.fireworks; import com.fossgalaxy.games.fireworks.ai.Agent; import com.fossgalaxy.games.fireworks.ai.osawa.rules.OsawaDiscard; import com.fossgalaxy.games.fireworks.ai.rule.*; +import com.fossgalaxy.games.fireworks.ai.rule.random.PlayProbablySafeCard; import com.fossgalaxy.games.fireworks.ai.rule.random.TellRandomly; import com.fossgalaxy.games.fireworks.ai.rule.simple.PlayIfCertain; import com.fossgalaxy.games.fireworks.ai.rule.wrapper.IfRule; @@ -30,4 +31,18 @@ public class FunPlayer { pra.addRule(new TellRandomly()); return pra; } + + @AgentBuilderStatic("best") + public static Agent createBestRule(){ + ProductionRuleAgent pra = new ProductionRuleAgent(); + pra.addRule(new PlayProbablySafeCard(0.7)); + pra.addRule(new CompleteTellUsefulCard()); + pra.addRule(new TellAnyoneAboutUsefulCard()); + pra.addRule(new OsawaDiscard()); + pra.addRule(new DiscardOldestNoInfoFirst()); + pra.addRule(new DiscardOldestFirst()); + pra.addRule(new TellMostInformation(true)); + pra.addRule(new TellMostInformation(false)); + return pra; + } }