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

38
LINES

< > BotCompany Repo | #1002753 // X is Y

Document

// Learning

[
  if  [User < says < X < is < Y]
  memorize [User < said < X < is < Y]
  say [
        [ok < X < is < a < Y]
        [i < will < remember < that]
      ]
]

// Querying

[
  if  [User < says < what < is < X]
  and [* < said < X < is < Y]
  say [X < is < Y]
]

// Verifying

[
  if  [User < says < X < is < Y]
  and [* < said < X < is < Y]
  say [yes < i < know]
]

// Adding another one

[
  if  [User < says < C < is < B]
  and [* < said < C < is < A]
  memorize [User < said < C < is < B]
  say [
        [oh < i < thought < C < was < A]
        [i < will < remember < that < it [= C] < is < also < B]
      ]
]

Author comment

Began life as a copy of #1002745

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002753
Snippet name: X is Y
Eternal ID of this version: #1002753/1
Text MD5: 4f1cb439801a3d54bfb8aa5c9c15e994
Author: stefan
Category: snl logic
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-20 03:42:50
Source code size: 669 bytes / 38 lines
Pitched / IR pitched: No / No
Views / Downloads: 479 / 110
Referenced in: [show references]