1 | static void ai_analyzeSubSpace(AI_SubSpace subSpace) { |
2 | print("Have subspace with " + nWeb(subSpace.webs)); |
3 | print("Sources: " + struct(collectUnique(subSpace.webs, 'source))); |
4 | |
5 | Web seedWeb = first(subSpace.webs); |
6 | T3<S> seed = webToTriple(seedWeb); |
7 | print("Seed: " + ai_renderTriple(seed)); |
8 | T3<S> goal = ai_parseTriple(ai_text(subSpace, "_goal", "is", "$X")); |
9 | print("Goal: " + ai_renderTriple(goal)); |
10 | Web solution = webNodeToWeb(last(webs_tripleSearch_dollarX(subSpace.webs, goal))); |
11 | print("Solution: " + webToStringShort(solution)); |
12 | if (solution == null) ret; |
13 | print("Solution source: " + solution.source); |
14 | } |
Began life as a copy of #1012131
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: | #1012154 |
Snippet name: | ai_analyzeSubSpace |
Eternal ID of this version: | #1012154/2 |
Text MD5: | a186d955a945daede7bc51fd123e5da4 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-22 08:20:52 |
Source code size: | 642 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 480 / 475 |
Version history: | 1 change(s) |
Referenced in: | [show references] |