⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 leaks.pl

📁 超多的prolog源代码 具体内容见压缩包里面的programs.txt
💻 PL
字号:
% A toy knowledge base (Fig. 15.5 translated to Prolog)

if  kitchen_dry and hall_wet  then   leak_in_bathroom.

if  hall_wet and bathroom_dry  then  problem_in_kitchen.

if  window_closed or no_rain  then  no_water_from_outside.

if  problem_in_kitchen and no_water_from_outside  then  leak_in_kitchen.


% Declare fact/1 as a dynamic predicate to enable assert for this predicate

:- dynamic fact/1.

fact( window_closed).
fact( hall_wet).
fact( bathroom_dry).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -