-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
; http://editor.planning.domains/#edit_session=oy5HKqWaD3ECHzV | ||
; https://github.com/pucrs-automated-planning/heuristic-planning | ||
; https://ai.dmi.unibas.ch/forstudents.html | ||
; https://dmi.unibas.ch/de/studium/computer-science-informatik/lehrangebot-hs19/lecture-planning-and-optimization/#top | ||
(define (domain magic_world) | ||
(:requirements :strips :typing :negative-preconditions :equality) | ||
(:types | ||
character | ||
location | ||
) | ||
(:predicates | ||
(border ?place1 - location ?place2 - location) | ||
(at ?npc - character ?place - location) | ||
) | ||
(:action move | ||
:parameters (?character - character ?place1 - location ?place2 - location) | ||
:precondition (and (at ?character ?place1) (border ?place1 ?place2)) | ||
:effect (and (not (at ?character ?place1)) (at ?character ?place2)) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(define (problem moving_hero) | ||
(:domain magic_world) | ||
(:objects | ||
hero - character | ||
schack swamp forest town - location | ||
) | ||
(:init | ||
(border schack swamp) (border swamp schack) | ||
(border schack forest) (border forest schack) | ||
(border forest town) (border town forest) | ||
(at hero schack) | ||
) | ||
(:goal (at hero town)) | ||
) |