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 2

Go down 
AuthorMessage
Beezle
Elite Member
Elite Member
Beezle


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

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

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

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

thief(tom).
thief(arlene).
underage(tom).
underage(phil).
underage(paul).
underage(sara).
overage(arlene).
overage(mirelle).
overage(caroline).
overage(charles).
helps(phil, mirelle).
helps(paul, arlene).
helps(paul, charles).
helps(arlene, phil).
helps(mirelle, sara).
helps(charles, caroline).
helps(caroline, tom).

criminal(A):-thief(A).
criminal(F):-helps(F,A), criminal(A).
adults(B):-overage(B).
minors(C):-underage(C).
prison(D):-criminal(D), adults(D).
juvenile_centre(E):-criminal(E), minors(E).
Back to top Go down
 
Prolog Exercise 2
Back to top 
Page 1 of 1
 Similar topics
-
» Prolog Exercise 1
» Prolog Exercise 3
» 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: