Libraryless. Compilation Failed (23408L/175K).
!7 sclass Suggestion { RuleWithParams rule; S output; *() {} *(RuleWithParams *rule, S *output) {} } sclass TestBot extends DynObjectTable<RuleWithParams> { InputChooser inputChooser = new(this); start { inputChooser.delay = 1000; } visualize { ret northAndCenter(wrap(inputChooser), super.visualize()); } void update { if (inputChooser.update()) update(inputChooser.input()); } void update(S input) { new NLLogicChecker_v3 c; c.input = input; Pair<L<IfThen>, LS> rulesAndFacts = ai_activeRulesAndFacts(); c.facts = reversed(rulesAndFacts.b); c.rules = reversed(rulesAndFacts.a); // latest rules first! c.rules = [IfThen r : c.rules | ai_ruleAccessesInput(r)]; c.rules = nlLogic_safeLHSEvalsOnly(c.rules); c.useIterate = true; new L<RuleWithParams> battleSpace; nlLogic_fillBattleSpace(c, battleSpace, false); //print("l=" + l(battleSpace)); setData(map(battleSpace, func(RuleWithParams r) -> Suggestion { Suggestion(r, nlLogic_outputFromRuleWithParams(r)) })); } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018152 |
Snippet name: | Test Bot v1 [Dyn Module, shows firable rules for an input] |
Eternal ID of this version: | #1018152/14 |
Text MD5: | 0dccab88c74724afeea8829711daf9ac |
Transpilation MD5: | ab8807b3b1826212cc522dbc4de35cde |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-07 15:51:13 |
Source code size: | 1103 bytes / 38 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 416 / 1176 |
Version history: | 13 change(s) |
Referenced in: | [show references] |