Última actividad 1735267148

capitalex's Avatar capitalex revisó este gist 1735267147. Ir a la revisión

1 file changed, 24 insertions

going-places.chr(archivo creado)

@@ -0,0 +1,24 @@
1 + go_back, travel_sym(Id), at(FutureLocation)
2 + , history(GrandparentId, LastLocation, ParentId), history(ParentId, Location)
3 + <=> history(GrandparentId, LastLocation)
4 + , at(Location)
5 + , travel_sym(ParentId)
6 +
7 + go_back, travel_sym(FutureID), at(FutureLocation), history(Id, Location)
8 + <=> at(Location)
9 + , travel_sym(Id)
10 +
11 + go_back <=> nowhere_to_go
12 +
13 + go_to(NewLocation), at(Location), history(ParentId, LastLocation), travel_sym(Id)
14 + <=> history(ParentId, LastLocation, Id), history(Id, Location)
15 + , at(NewLocation)
16 + , travel_sym(Id + 1)
17 +
18 +
19 + go_to(NewLocation), travel_sym(Id), at(Location)
20 + <=> history(Id, Location)
21 + , at(NewLocation)
22 + , travel_sym(Id + 1)
23 +
24 + start <=> at("Home"), travel_sym(0)
Siguiente Anterior