You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
687 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:- ['predicates.pl'].
demo :-
write('=== ДЕМОНСТРАЦИЯ LAB9 TASK4: ЛОГИЧЕСКАЯ ЗАДАЧА ==='), nl, nl,
write('Условия:'), nl,
write('- Вода и молоко не в бутылке'), nl,
write('- Сосуд с лимонадом находится между кувшином и сосудом с квасом'), nl,
write('- В банке — не лимонад и не вода'), nl,
write('- Стакан находится около банки и сосуда с молоком'), nl, nl,
write('Решение:'), nl,
solve_puzzle(S),
pretty_print_solution(S), nl,
write('=== ДЕМОНСТРАЦИЯ ЗАВЕРШЕНА ==='), nl.