Skip to content

Commit

Permalink
não sei o que é isto
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago-Seven committed Apr 7, 2018
1 parent 593e3b9 commit b0eddc6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion inicioDCG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@ Serviço -> [insert serviço] e InicioCondição | [insert serviço] ? | [insert
Localidade -> [insert localidade] e InicioCondição
//verificar depois no codigo se não se tem duas localidades
Possuir -> têm | possuem | dispoem de | oferecem |
Existem -> existem | há
Existem -> existem | há


custo(Hotel,Custo,igual) :- hotel(Hotel), hotel(X,_,_,Custo,_,_).
custo(Hotel,Custo,maior) :- hotel(Hotel), hotel(Hotel,_,_,_,CustoDB,_),CustoDB > Custo.
custo(Hotel,Custo,menor) :- hotel(Hotel), hotel(Hotel,_,_,_,CustoDB,_),CustoDB < Custo.

rating(Hotel,Rating,igual) :- hotel(Hotel), hotel(X,_,Rating,_,_,_).
rating(Hotel,Rating,maior) :- hotel(Hotel), hotel(X,_,Z,_,_,_),Z > Y.
servico(Hotel,Servico) :- ser(Hotel,hotel), hotel(Hotel,_,_,_,_,Servicos), member(Servico,Servicos).
local(Hotel,Local) :- ser(Hotel,hotel), hotel(Hotel,Local,_,_,_,_).

0 comments on commit b0eddc6

Please sign in to comment.