Guest User

Untitled

a guest
Jan 22nd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. :- use_module('pl-man-game/main').
  2. mi_regla0:- see(normal,right,'.'),doAction(move(right)).
  3.  
  4. mi_regla1:- see(normal,right,'.'),doAction(move(right)).
  5. mi_regla1:- see(normal,down,'.'),doAction(move(down)).
  6. mi_regla1:- see(normal,left,'.'),doAction(move(left)).
  7.  
  8. mi_regla2:- see(normal,down,'.'),doAction(move(down)).
  9. mi_regla2:- see(normal,up,'.'),doAction(move(up)).
  10. mi_regla2:- see(normal,left,'.'),doAction(move(left)).
  11. mi_regla2:- see(normal,right,'.'),doAction(move(right)).
  12.  
  13. mi_regla3:- see(normal,left,'a'),doAction(get(left)).
  14. mi_regla3:- see(normal,down,'-'),doAction(use(down)).
  15. mi_regla3:- see(normal,down,'.'),doAction(move(down)).
  16. mi_regla3:- see(normal,left,'.'),doAction(move(left)).
  17. mi_regla3:- see(normal,right,'.'),doAction(move(right)).
Add Comment
Please, Sign In to add comment