Download Jar. Libraryless. Click here for Pure Java version (10804L/59K).
!7 p-exp { new DerivedMechLists lists; // use general facts & parsing info BakedBot bot = new(lists); lists.setText("NL Logic Examples", [[ input(how many $faces are on a $rubiks_cube) && fact(a $rubiks_cube has $six $faces) => output($six) input(how many segments are on a face of a rubik's cube) => input(how many segments are on a {face of a rubik's cube}) ]]); lists.setText("Rule & Fact Lists", ""); lists.setText("Default active scripts", ""); for (S s : ll( "how many segments are on a {face of a rubik's cube}", "how many segments are on a face of a rubik's cube")) bot.pcheckOrPrintLog(s, "9"); }
Began life as a copy of #1017770
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017870 |
Snippet name: | Test a single rule [OK] |
Eternal ID of this version: | #1017870/13 |
Text MD5: | a216212ece951d235df25d4246896b04 |
Transpilation MD5: | 2e2869657543f902dcca9f45ac30dfac |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-19 01:26:11 |
Source code size: | 665 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 434 / 1086 |
Version history: | 12 change(s) |
Referenced in: | [show references] |