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

44
LINES

< > BotCompany Repo | #1008203 // Good & Bad Alert [WORKS]

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

Libraryless. Click here for Pure Java version (10941L/75K/249K).

!7

sS script = [[
  Make an empty thought space X.
  Assert (X is empty).
  Add (God is good) to X.
  Add (God is bad) to X.
  Apply always rules in X.
  Assert (Not (X contains CONFUSION)).
  Add (Always fully apply ((Y is good) and (Y is bad) => CONFUSION)) to X.
  Apply always rules in X.
  Assert (X contains CONFUSION).
]];

sS bla = [[
  // concepts
  zivsiiacmvqrolto - True
  zqbbvhdeuzyhewed - False
  jamvyfwypzbptvle - Make an empty thought space X.
  matnhiruhwprdiir - Add (X) to Y.
  aaedrmcbfcsubkkf - Apply rule (X) to Y.
  bcypplfticghlkxy - Apply always rules in X.
  anmgnlmdnkjivliq - Always fully apply (X)
  txsysipmstxmjhmi - (X) and (Y) => (Z)
  kecvwixuouqlpzhu - (X) and (Y) => Z
  unfiqixlxwqnomcs - X contains Y
  yvmxaacduvvomgqi - X is empty
  wcwlqvvrpdwjzfms - X is Y
  rzryqdohxtczvzgn - Assert (X).
  wynynoujiakixjus - Not (X)
  chjllkocfhtwcgoj - Remove (X)
]];

p {
  myTruth(bla);
  aiStandardHandlers();

  try {
    assertLispScriptSucceeds(print(xyzToNewIDs(script, "X")));
  } finally {
    printThoughtSpaces();
  }
  print("OK");
}

Author comment

Began life as a copy of #1008197

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: #1008203
Snippet name: Good & Bad Alert [WORKS]
Eternal ID of this version: #1008203/12
Text MD5: ab6c208736398ada766f406375eb61dd
Transpilation MD5: e8e8f1b9b9cf896e1f302d33212a1642
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-30 00:54:30
Source code size: 1120 bytes / 44 lines
Pitched / IR pitched: No / No
Views / Downloads: 452 / 870
Version history: 11 change(s)
Referenced in: [show references]