Example #1
0
 public WireSetComponentSolver(BombCommander bombCommander, WireSetComponent bombComponent) :
     base(bombCommander, bombComponent)
 {
     _wires  = bombComponent.wires;
     modInfo = ComponentSolverFactory.GetModuleInfo("WireSetComponentSolver", "!{0} cut 3 [cut wire 3] | Wires are ordered from top to bottom | Empty spaces are not counted");
 }
Example #2
0
    public WiresLogging(BombComponent bombComponent) : base(bombComponent, "WireSetComponent")
    {
        WireSetComponent wireSetComponent = (WireSetComponent)bombComponent;

        Log($"Wire colors: {wireSetComponent.wires.Select(wire => wire.GetColor().ToString()).Join(", ")}");
    }
Example #3
0
 public WireSetComponentSolver(BombCommander bombCommander, WireSetComponent bombComponent, IRCConnection ircConnection, CoroutineCanceller canceller) :
     base(bombCommander, bombComponent, ircConnection, canceller)
 {
     _wires  = bombComponent.wires;
     modInfo = ComponentSolverFactory.GetModuleInfo("WireSetComponentSolver");
 }
        public int GetSolutionIndex(WireSetComponent wireComponent)
        {
            List <Rule> ruleList = this.RulesDictionary[wireComponent.WireCount];

            return(base.ExecuteRuleList(wireComponent, ruleList));
        }