Prolog Adventure Game
21–29 of 29 posts
Re: Prolog Adventure Game
#22Re: Prolog Adventure Game
#23is it generated by LLM using prompt at https://github.com/stefanrodrigues2/Prolog-Adventure-game/bl... ?
Given [1], probably :))) [1] https://github.com/stefanrodrigues2/Prolog-Adventure-game/bl...
Re: Prolog Adventure Game
#24I have never heard of Prolog before so this was cool. I did think the "make sure the flashlight is turned on" point was kind of confusing. I have the battery and flashlight, but there's no way to turn it on. I couldn't run it with gprolog but swipl works fine.
flashlight_on :- at(flashlight,holding), at(battery,holding).
This condition is checked when you try to reach "woods" and "woods_1". (And that's the only place you can test if the flashlight is on, because it's otherwise not checked and doesn't change any of the descriptions.) The flashlight doesn't save you from dying in the "deepforest_X".Re: Prolog Adventure Game
#25$ swipl -s treasure_hunt.pl
and then what?
Re: Prolog Adventure Game
#26If you wrote an adventure game in Prolog, you could write a client that would also solve the adventure.
Re: Prolog Adventure Game
#27I can't get this game to start, am I stupid? $ swipl -s treasure_hunt.pl and then what?
-▶ swipl -s treasure_hunt.pl
Welcome to SWI-Prolog (threaded, 64 bits, version 9.2.9)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).
?- start. % Re: Prolog Adventure Game
#28Earlier quoted context omitted.
Going to tell the Preface story tomorrow at work, I guess if your reading this you now know my HN handle ;) Not sure I will do the 'game' but that into was worth clicking the link.
> I guess if your reading this you now know my HN handle No worries. A great philosopher once wrote: "There is a theory which states that if ever anyone discovers exactly what your HN handle is for and why it is here, it will instantly disappear and be replaced by an HN handle even more bizarre and inexplicable."
"There is another theory which states that this has already happened..."
Re: Prolog Adventure Game
#29I can't get this game to start, am I stupid? $ swipl -s treasure_hunt.pl and then what?
-▶ swipl -s treasure_hunt.pl Welcome to SWI-Prolog (threaded, 64 bits, version 9.2.9) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details. For online help and background, visit https://www.swi-prolog.org For built-in help, use ?- help(Topic). or ?- apropos(Word). ?- start. %