Friday, April 19, 2013

tugas kecerdasan buatan

membuat makalah
gerak('kanan','U',X,Y):- X=100,Y=100.
gerak('lurus','U',X,Y):- 10<X,X<100, 10<Y,Y<100.
gerak('kiri','T',X,Y):- X=100,Y=100.
gerak('lurus','S',X,Y):- 10<X,X<100, 10<Y,Y<100.
gerak('lurus','B',X,Y):- 10<X,X<100, 10<Y,Y<100.
gerak('lurus','T',X,Y):- 10<X,X<100, 10<Y,Y<100.
gerak('kanan','T',X,Y):- X=10,Y=10.
kesimpulan(A,ARAH,X,Y):- gerak(A,ARAH,X,Y).

0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More