Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ForOldHack
· 1y ago · 0 comments
If you wrote an adventure game in Prolog, you could write a client that would also solve the adventure.
Comments
[–]
ooopdddddd
1y ago
That's only if you are using pure predicates. From a quick glance, the code makes liberal use of assert, retract, and the cut operator, so you can't write a query that solves the problem automatically.
[–]
mcv
1y ago
I can imagine it's easier to write that client in Prolog than the adventure.
[–]
johnisgood
1y ago
Or write a program that generates the adventure game!