Skip to content

Instantly share code, notes, and snippets.

View damons's full-sized avatar

Damon Sicore damons

View GitHub Profile
@damons
damons / spider.pl
Created August 6, 2017 21:36 — forked from JosephLenton/spider.pl
prolog text adventure game
/* SPIDER -- a sample adventure game, by David Matuszek.
Consult this file and issue the command: start. */
:- dynamic at/2, i_am_at/1, alive/1. /* Needed by SWI-Prolog. */
:- retractall(at(_, _)), retractall(i_am_at(_)), retractall(alive(_)).
/* This defines my current location. */
i_am_at(meadow).