-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
%%% FATOS ... = Mapa | ||
index(-, -) | ||
estrada(joinville , itajai ) . | ||
estrada(joinville , blumenau ) . | ||
estrada(itajai , camboriu ) . | ||
estrada(blumenau , camboriu ) . | ||
estrada(camboriu , floripa ) . | ||
|
||
% As regra da LPO agora em PICAT | ||
%% MUDAR AQUI ..... | ||
caminho(X,Y) ?=> estrada(X,Y) . | ||
caminho(X,Y) => estrada(X,Z) , | ||
caminho(Z,Y) . | ||
|
||
listar_todos ?=> %%% this rule is backtrackable | ||
caminho(X,Y) , %% and | ||
printf("\n X: %w ---> Y: %w ", X, Y ) , %% and | ||
false. | ||
|
||
listar_todos => | ||
printf("\n ") , | ||
true. %% the final rule of above | ||
|
||
%% aconselhavel o ... uso do main | ||
main => | ||
listar_todos . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//Jane Hamel - Draw a House | ||
size(800,800); | ||
rect(50,200,500,350); // outside border of house | ||
triangle(50,200,300,50,550,200); // roof | ||
rect(85,250,100,225); // outside of left window | ||
rect(415,250,100,225); // outside of right window | ||
line(85,363,185,363); // horizontal line in left window | ||
line(135,250,135,475); // vertical line in left window | ||
line(415,363,515,363); // horizontal line in right window | ||
line(465,250,465,475); // vertical line of right window | ||
rect(250,250,100,300); // border of door | ||
ellipse(270,393,15,15); // door knob |