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 Lab 2

Go down 
AuthorMessage
Link
Admin
Admin
Link


Male
Number of posts : 1217
Age : 37
Location : Depths Of Cyberspace
Mood : Prolog Lab 2 Balanced
Points : 471
Registration date : 2007-07-26

Character sheet
Weapon: Wooden Spoon of Ignorance
Class: Red Mage Red Mage
HP:
Prolog Lab 2 Left_bar_bleue50/50Prolog Lab 2 Empty_bar_bleue  (50/50)

Prolog Lab 2 Empty
PostSubject: Prolog Lab 2   Prolog Lab 2 Icon_minitimeTue Sep 14, 2010 8:24 pm

%==================== FACTS =========================%
book(carrie).
mystery_book(langoliers).
authors('stephen king', carrie).
authors('stephen king', langoliers).

%==================== RULES =========================%

reads(sue, X):-authors('stephen king', X).
like(sue, X):-mystery_book(X),reads(sue,X).
reads(jane,X):-like(sue,X).


%==================================================================

boy(tom).
boy(john).
attends(john,utech).
attends(tom,uwi).

%=======================rule==========

rebels(X):-boy(X),attends(X,uwi).
Back to top Go down
https://jubecron.forumotion.com
 
Prolog Lab 2
Back to top 
Page 1 of 1
 Similar topics
-
» prolog lab 3
» Prolog Lab 1
» Prolog Lab 5
» Prolog Exercise 1
» Prolog Exercise 3

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