This repository has been archived on 2022-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
heyawake-prolog/resolveur.pl

23 lines
341 B
Perl
Raw Normal View History

2021-02-25 21:33:15 +01:00
longueur(X) :- X.
largeur(X) :- X.
aire(X1, Y1, X1, Y1, 1) :- write('blanc').
aire(X1, Y1, X2, Y2, N) :- X1, Y1, X2, Y2, N.
run :- write('oui').
2021-02-25 20:55:01 +01:00
/*
2021-02-25 21:33:15 +01:00
longueur(6).
largeur(6).
2021-02-25 20:55:01 +01:00
aire(0,0,1,1,2).
aire(2,0,2,2,-1).
aire(3,0,5,1,-1).
aire(0,2,0,4,-1).
aire(1,2,1,3,0).
aire(3,2,5,2,0).
aire(1,4,1,4,1).
aire(2,3,5,5,4).
aire(0,5,1,5,-1).
2021-02-25 21:33:15 +01:00
run.
2021-02-25 20:55:01 +01:00
*/