Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1017661 // Bot Initiative Spike [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (7807L/57K).

!7

p-exp {
  L<IfThen> rules = mL_parsedNLRulesWithoutIDs("Initiative rules");
  for (IfThen rule : shuffledIterator(rules)) {
    Pair<Exp> p = nlLogic_extractFirstCondition(rule.in);
    if (p == null) continue;
    if (nlLogic_isFunc(p.a, 'initiative)) {
      print(nlLogic_text(((Func) p.a).arg));
      print("Remaining: " + sfu(IfThen(p.b, rule.out)));
      break;
    }
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017661
Snippet name: Bot Initiative Spike [dev.]
Eternal ID of this version: #1017661/4
Text MD5: d92ff6acef8c7e8bd6b513f63d4dee13
Transpilation MD5: c731c6417306a5680ce7a55762667e52
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-31 19:21:24
Source code size: 398 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 334 / 851
Version history: 3 change(s)
Referenced in: [show references]