Welcome to the Prolog Program Repository, an exceptional compilation of powerful programs designed to harness the full potential of Prolog programming. This repository is a dedicated space where logic comes to life, offering a diverse array of Prolog programs tailored to elevate your coding experience and enable sophisticated problem-solving in the realm of artificial intelligence, knowledge representation, and more.
git clone https://github.com/abhyuday1212/Prolog-Programs.git
- You can simply Go to the below mentioned website and run these codes (Recommended).
https://swish.swi-prolog.org/
- You Can Also Download the Swi-Prolog from this website.
https://www.swi-prolog.org/download/devel
-
In this repository, you'll discover code contributions from the exceptional Prolog programmer and my good friend, [Shreyansh]. We express our heartfelt gratitude for his outstanding contributions. Thank you for being an invaluable part of this collaborative endeavor.
-
You can Connect him here.
related(ai,machineLearning).
related(prolog,naturalLanguageProcessing).
related(ai,naturalLanguageProcessing).
Cube.
start.
fact(5,Result).
fact(6,X).
fact(10,Y).
series(4).
series(6).
series(8).
list_delete(Elem, [1, 2, 3, 4], Result).
list_insert(Elem, [1, 2, 3], Result).
list_delete(Elem, [], Result).
list_insert(Elem, [], Result).
input.
go.
attempt(4, 10, 5, 2, 3).
four_queens(Board).
temp.
move(3, 'A', 'C', 'B').
move(2, 'A', 'C', 'B').
move(4, 'A', 'C', 'B').
move(5, 'A', 'B', 'C').
water_jug(0, 0).
- Explore different actions with 4L jug full and 3L jug empty:
water_jug(4, 0).
- Explore different actions with 4L jug empty and 3L jug full:
water_jug(0, 3).
- Explore different actions with both jugs partially filled:
water_jug(2, 1).
- Explore different actions with both jugs at their maximum capacity:
water_jug(4, 3).