Created
February 11, 2023 14:03
-
-
Save kariyayo/571669ad1073cc06ae84e815f598478a to your computer and use it in GitHub Desktop.
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
move( state( middle, onbox, middle, hasnot), | |
grasp, | |
state( middle, onbox, middle, has) ). | |
move( state( P, onfloor, P, H), | |
climb, | |
state( P, onbox, P, H) ). | |
move( state( P1, onfloor, P1, H), | |
push( P1, P2), | |
state( P2, onfloor, P2, H) ). | |
move( state( P1, onfloor, B, H), | |
walk( P1, P2), | |
state( P2, onfloor, B, H) ). | |
% canget( State): 猿が状態Sでバナナを取れる | |
canget( state(_, _, _, has)). | |
canget( State1) :- | |
move( State1, Move, State2), | |
canget( State2). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment