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

20
LINES

< > BotCompany Repo | #1012155 // Solve question and analyze (dev.)

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

Download Jar. Libraryless. Click here for Pure Java version (19074L/138K).

1  
!7
2  
3  
p {
4  
  centerHigherConsole();
5  
  autoRestart(5);
6  
  S q = "is 6 bigger than 3?";
7  
  print(q);
8  
  if (ai_text("$X", "answers", q) != null) fail("Already have solution");
9  
  ai_callSpeculationFunction_functionsCalled.set(new HashSet);
10  
  
11  
  ai_speculate_functions.remove(f ai_spec_searchForAnswer);
12  
  ai_speculate_functions.add(f ai_spec_searchForAnswer_v2);
13  
  
14  
  Pair<AI_SubSpace, S> p = ai_solveQuestionInSubSpace_noTimeOut2(q);
15  
  print("Answer: " + p.b);
16  
  print("Functions called: " + sortedList(ai_callSpeculationFunction_functionsCalled!));
17  
  
18  
  ai_printSubSpace(p.a);
19  
  ai_analyzeSubSpace(p.a);
20  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012155
Snippet name: Solve question and analyze (dev.)
Eternal ID of this version: #1012155/12
Text MD5: d4a5c188231158304b7f69cf6f1304cc
Transpilation MD5: dfc708e0ec62f334084a329188a7da4c
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-22 09:33:11
Source code size: 617 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 599 / 1647
Version history: 11 change(s)
Referenced in: [show references]