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

19
LINES

< > BotCompany Repo | #1008299 // lispSolveQuestionVerbose - solve in thought space

JavaX fragment (include)

1  
// returns answers in english
2  
static L<S> lispSolveQuestionVerbose(S q) {
3  
  Lisp l = englishToLisp_best(q);
4  
  print(q);
5  
  openThoughtSpace();
6  
  fromUser(lisp("vouwrrhtmajsgaby", l)); // emit question
7  
  //set applyAlwaysRules_step_debug;
8  
  applyRules();
9  
  L<Lisp> answers = lispTruth1("nywfcwkkcknzhmdy");
10  
  new L<S> out;
11  
  for (Lisp la : answers) {
12  
    S a = lispToEnglish(la);
13  
    printIndent(a);
14  
    out.add(lispToEnglish(la.get(0))); // drop the "A:" prefix
15  
  }
16  
  //printLispStatements();
17  
  thoughtSpace(null);
18  
  ret out;
19  
}

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: #1008299
Snippet name: lispSolveQuestionVerbose - solve in thought space
Eternal ID of this version: #1008299/4
Text MD5: 42a4c1a2e6896194279c8c4ae3685e85
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-08 01:12:31
Source code size: 544 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 421
Version history: 3 change(s)
Referenced in: [show references]