4 ms·
If you wrote an adventure game in Prolog, you could write a client that would also solve the adventure.
by ForOldHack 1y ago
If you wrote an adventure game in Prolog, you could write a client that would also solve the adventure.
- mcv 1y agoI can imagine it's easier to write that client in Prolog than the adventure.
- johnisgood 1y agoOr write a program that generates the adventure game!
- ooopdddddd 1y agoThat'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.