Libraryless. Click here for Pure Java version (11080L/77K/253K).
1 | !7 |
2 | |
3 | sS questions = [[ |
4 | Is your product software? |
5 | Is your product hardware? |
6 | Is your product a fluffy penguin? |
7 | ]]; |
8 | |
9 | sS facts = [[ |
10 | My product is a C compiler |
11 | A C compiler is software |
12 | ]]; |
13 | |
14 | sS rules = [[ |
15 | Always: (Q: Is your product X?) & (My product is Y) & (Y is X) => A: Yes |
16 | Always: (Q: X) & (There is no statement with operator nywfcwkkcknzhmdy.) => A: I don't know |
17 | |
18 | anmjmlkwmjbzbiss - Always: X |
19 | ufzlismnlhvbjqoj - (X) and (Y) and (Z) and (AA) and (AB) => (AC) |
20 | phkdhqkhzytkwdpb - (X) and (Y) and (Z) and (AA) => (AB) |
21 | cntevdawguaaxqmn - (X) and (Y) and (Z) => (AB) |
22 | eijdjqhyzheusetj - (X) and (Y) and (Z) => (AA) |
23 | jkbzwuwirpbvfzhy - (X) & (Y) & (Z) => AA |
24 | mwpbetwhkuuuupws - X and Y and Z => AA |
25 | txsysipmstxmjhmi - (X) and (Y) => (Z) |
26 | cuutddpitkuswthu - While (X) => (Y) |
27 | kecvwixuouqlpzhu - (X) and (Y) => Z |
28 | tusgcjefvtgebzba - (X) & (Y) => Z |
29 | wziyypnyayfphdxs - (X) => (Y) |
30 | chkfkshhwshoauan - X => Y |
31 | mcoswmplpqlieruo - (X) |
32 | zhoulgsatpswstfa - There is no statement with operator X. |
33 | |
34 | vouwrrhtmajsgaby - Q: X |
35 | nywfcwkkcknzhmdy - A: X |
36 | |
37 | ypenmdohuvmyfabd - Is your product X? |
38 | wcwlqvvrpdwjzfms - X is Y |
39 | kxlzhendchftgjqh - No X where (Y) |
40 | zhahnerfmvfdqkxd - It's X |
41 | zqxoghyhhhfgziob - I don't know |
42 | ]]; |
43 | |
44 | p { |
45 | myTruthNonPersist(facts + rules); |
46 | lispSolveQuestionsVerbose(questions); |
47 | } |
Began life as a copy of #1008271
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: | #1008300 |
Snippet name: | What is your product? [WORKS] |
Eternal ID of this version: | #1008300/8 |
Text MD5: | 533a0ec4cddbfd92eb55a744ab0b6371 |
Transpilation MD5: | 6dcc7a3f86fa43a0e096190b4ef9d276 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-07 01:56:17 |
Source code size: | 1369 bytes / 47 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 553 / 959 |
Version history: | 7 change(s) |
Referenced in: | [show references] |