Commit 041aa830 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

ensure that the models are complete

parent 59620f07
Pipeline #2360 failed with stages
in 2 minutes and 36 seconds
......@@ -112,8 +112,8 @@ public class CompetitionSetup {
// a few unusual guys to confuse people
"iggi2",
"model[51,26,8,5,31,3]",
"model[26,30,12,2,31,3]"
LearntRunner.model1,
LearntRunner.model2
);
}
......
......@@ -19,6 +19,9 @@ import java.security.SecureClassLoader;
import java.util.*;
public class LearntRunner {
public static final String model1 = "model[51,26,8,46,5,31,3,33,16]";
public static final String model2 = "model[26,30,43,5,31,3,33]";
private static Logger logger = LoggerFactory.getLogger(LearntRunner.class);
// this is too intense, we need to cluster it
......@@ -101,11 +104,11 @@ public class LearntRunner {
mapping.put("B", "iggi");
mapping.put("C", "piers");
mapping.put("D", "outer");
mapping.put("E", "model[51,26,8,5,31,3]");
mapping.put("E", model1);
mapping.put("F", "internal");
mapping.put("G", "iggi");
mapping.put("H", "mctsND");
mapping.put("I", "model[26,30,12,2,31,3]");
mapping.put("I", model2);
return mapping;
}
......
......@@ -2,6 +2,7 @@ package com.fossgalaxy.comet.fireworks.f2019;
import com.fossgalaxy.games.fireworks.ai.Agent;
import com.fossgalaxy.games.fireworks.ai.rule.ProductionRuleAgent;
import com.fossgalaxy.games.fireworks.ai.rule.Rule;
import com.fossgalaxy.games.fireworks.utils.AgentUtils;
public class SanityCheck {
......@@ -10,8 +11,17 @@ public class SanityCheck {
//model[51,26,8,5,31,3]
//model[26,30,12,2,31,3]
ProductionRuleAgent agent = (ProductionRuleAgent)AgentUtils.buildAgent("model[26,30,12,2,31,3]");
System.out.println(agent.getRules());
System.out.println("model 1");
ProductionRuleAgent agent = (ProductionRuleAgent)AgentUtils.buildAgent("model[51,26,8,5,31,3]");
for (Rule rule : agent.getRules()) {
System.out.println(rule);
}
System.out.println("model 2");
agent = (ProductionRuleAgent)AgentUtils.buildAgent("model[26,30,12,2,31,3]");
for (Rule rule : agent.getRules()) {
System.out.println(rule);
}
System.out.println(AgentUtils.buildAgent("mctsND"));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment