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

12
LINES

< > BotCompany Repo | #1009039 // ctxPostRule - post-processing of rule (jumpaway/thinkagain)

JavaX fragment (include)

1  
static bool ctxPostRule() {
2  
  if (ctxContext().jumpaway) {
3  
    ctxClearActive();
4  
    ctxContext().nextRule = woodyBot().jumpawayRule;
5  
    true;
6  
  } else if (ctxContext().thinkagain) {
7  
    ctxClearActive();
8  
    ctxContext().nextRule = ctxFindRuleForInput();
9  
    true;
10  
  }
11  
  false;
12  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009039
Snippet name: ctxPostRule - post-processing of rule (jumpaway/thinkagain)
Eternal ID of this version: #1009039/2
Text MD5: cdc80ff2158d57f422aa3d640780f146
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-29 18:34:48
Source code size: 292 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 458
Version history: 1 change(s)
Referenced in: [show references]