root/trunk/examples/birds/SCRIPT.txt

Revision 4662, 1.7 KB (checked in by pmoura, 6 days ago)

Updated copyright notice.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1================================================================
2Logtalk - Open source object-oriented logic programming language
3Release 2.35.0
4
5Copyright (c) 1998-2009 Paulo Moura.        All Rights Reserved.
6Logtalk is free software.  You can redistribute it and/or modify
7it under the terms of the "Artistic License 2.0" as published by
8The Perl Foundation. Consult the "LICENSE.txt" file for details.
9================================================================
10
11
12% start by loading the example and the required library files:
13
14| ?- logtalk_load(birds(loader)).
15...
16
17
18% ask the expert system for help in identifying a bird:
19
20| ?- expert::identify.
21Bird identification expert system
22
23bill:sharp_hooked? (yes or no): yes.
24eats:birds? (yes or no): yes.
25feet:curved_talons? (yes or no): yes.
26head:large? (yes or no): yes.
27
28What is the value for tail?
291 : narrow_at_tip
302 : forked
313 : long_rusty
324 : square
335 : other
34Enter the number of choice> 1.
35
36wings:long_pointed? (yes or no): yes.
37
38Possible identification : peregrine_falcon
39
40No (more) candidates found.
41
42(16379 ms) yes
43
44
45% identify another bird:
46
47| ?- expert::identify.
48Bird identification expert system
49
50bill:sharp_hooked? (yes or no): no.
51bill:flat? (yes or no): no.
52bill:short? (yes or no): no.
53bill:hooked? (yes or no): yes.
54
55What is the value for flight?
561 : ponderous
572 : powerful
583 : agile
594 : flap_glide
605 : other
61Enter the number of choice> 2.
62
63color:dark? (yes or no): yes.
64live:at_sea? (yes or no): yes.
65nostrils:external_tubular? (yes or no): yes.
66
67What is the value for size?
681 : large
692 : plump
703 : medium
714 : small
72Enter the number of choice> 1.
73
74wings:long_narrow? (yes or no): yes.
75
76Possible identification : black_footed_albatross
77
78No (more) candidates found.
79
80(34624 ms) yes
81| ?-
Note: See TracBrowser for help on using the browser.