Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
(task=
|
||||
( oracle
|
||||
= (predicate="is made of green cheese")
|
||||
(generateTruth=.str$(!arg " " !(its.predicate) "."))
|
||||
(generateLie=.str$(!arg " " !(its.predicate) "!"))
|
||||
)
|
||||
& new$oracle:?SourceOfKnowledge
|
||||
& put
|
||||
$ "You may ask the Source of Eternal Wisdom ONE thing.
|
||||
Enter \"Truth\" or \"Lie\" on the next line and press the <Enter> key.
|
||||
"
|
||||
& whl
|
||||
' ( get':?trueorlie:~Truth:~Lie
|
||||
& put$"Try again\n"
|
||||
)
|
||||
& put$(str$("You want a " !trueorlie ". About what?" \n))
|
||||
& get'(,STR):?something
|
||||
& (SourceOfKnowledge..str$(generate !trueorlie))$!something
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue