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

28
LINES

< > BotCompany Repo | #1017947 // BakedFactsBot

JavaX fragment (include)

sclass BakedFactsBot_base {
  JComponent visualize() {
    ret jpanel();
  }
}

sclass BakedFactsBot > BakedFactsBot_base {
  !include #1017946
  
  *() {}
  *(VF1<? super S> *postMessage) {}
  
  transient VF1<? super S> postMessage;
  transient new L<Map> recentHistory;

  void postMessage(S s) {
    callF(postMessage, s);
  }
  
  S answer(S s) {
    new L<S> l;
    tempSetField(this, postMessage := vfAddToList(l));
    thinkAbout(s);
    ret rtrim_fromLines(l);
  }
  
  BakedFactsBot think(S s) { thinkAbout(s); this; }
}

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: #1017947
Snippet name: BakedFactsBot
Eternal ID of this version: #1017947/7
Text MD5: 9e2c33b0e75f436da7a6f12501054b93
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-22 23:41:58
Source code size: 557 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 373 / 937
Version history: 6 change(s)
Referenced in: [show references]