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

17
LINES

< > BotCompany Repo | #1012131 // Analyze logged subspace [dev.]

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

Download Jar. Libraryless. Click here for Pure Java version (16346L/115K).

1  
!7
2  
3  
p {
4  
  File f = getProgramFile(#1010745, "logged-subspaces/subspace2.gz");
5  
  AI_SubSpace subSpace = cast loadGZStructure(f);
6  
  print("Have subspace with " + nWeb(subSpace.webs));
7  
  print("Sources: " + struct(collectUnique(subSpace.webs, 'source)));
8  
  
9  
  Web seedWeb = first(subSpace.webs);
10  
  T3<S> seed = webToTriple(seedWeb);
11  
  print("Seed: " + ai_renderTriple(seed));
12  
  T3<S> goal = t3("$X", "answers", seed.a);
13  
  print("Goal: " + ai_renderTriple(goal));
14  
  Web solution = webNodeToWeb(last(webs_tripleSearch_dollarX(subSpace.webs, goal)));
15  
  print("Solution: " + webToStringShort(solution));
16  
  print("Solution source: " + solution.source);
17  
}

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: #1012131
Snippet name: Analyze logged subspace [dev.]
Eternal ID of this version: #1012131/12
Text MD5: d7bcd0cb1c220d8649e7b302f396db66
Transpilation MD5: 1116d82335d96e561bddc1cb193103ae
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-21 09:57:19
Source code size: 662 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 581 / 1254
Version history: 11 change(s)
Referenced in: [show references]