Jubecron Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Jubecron Forum

The JUBECRON forum - Jamaican Chat, Dating, Games, Anime, and just meeting people.
 
HomePortalSearchLatest imagesRegisterLog in

 

 Prolog Exercise 1

Go down 
AuthorMessage
Beezle
Elite Member
Elite Member
Beezle


Female
Number of posts : 547
Age : 34
Mood : Prolog Exercise 1 Breezy
Points : 253
Registration date : 2008-03-02

Character sheet
Weapon: Chakrams
Class: Ninja Ninja
HP:
Prolog Exercise 1 Left_bar_bleue50/50Prolog Exercise 1 Empty_bar_bleue  (50/50)

Prolog Exercise 1 Empty
PostSubject: Prolog Exercise 1   Prolog Exercise 1 Icon_minitimeTue Oct 19, 2010 7:41 pm

% Author: Claudia-Ann Gray 0702011
% Date: 9/14/2010

short(tweety).
short(sonny).
barks(sonny).
barks(parkie).
fur(parkie).
fur(sonny).
runs(tweety).
friend(tweety,tom).
catcher(tom).

dog(A):-barks(A), fur(A); runs(A).
terrier(A):-short(A), dog(A).
capture(A,B):-catcher(B), terrier(A), not(friend(A,B)).
captured(A):-capture(A,_).
Back to top Go down
 
Prolog Exercise 1
Back to top 
Page 1 of 1
 Similar topics
-
» Prolog Exercise 3
» Prolog Exercise 2
» Prolog Exercise 4
» Prolog Exercise 5
» Prolog Lab 1

Permissions in this forum:You cannot reply to topics in this forum
Jubecron Forum :: School :: Schools (General)-
Jump to: