static void ai_analyzeSubSpace(AI_SubSpace subSpace) { print("Have subspace with " + nWeb(subSpace.webs)); print("Sources: " + struct(collectUnique(subSpace.webs, 'source))); Web seedWeb = first(subSpace.webs); T3<S> seed = webToTriple(seedWeb); print("Seed: " + ai_renderTriple(seed)); T3<S> goal = ai_parseTriple(ai_text(subSpace, "_goal", "is", "$X")); print("Goal: " + ai_renderTriple(goal)); Web solution = webNodeToWeb(last(webs_tripleSearch_dollarX(subSpace.webs, goal))); print("Solution: " + webToStringShort(solution)); if (solution == null) ret; print("Solution source: " + solution.source); }
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: | 479 / 474 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |