Skip to content

HabibParvej/Prolog_Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Prolog Programming

A collection of Prolog programs and assignments demonstrating key concepts in Logic Programming, Artificial Intelligence, and Knowledge Representation.
This repository serves as a reference for students learning Prolog syntax, problem-solving, and rule-based reasoning.


📘 About the Repository

This repository contains various Prolog programs ranging from beginner to advanced level.
Each program focuses on a specific Prolog concept such as:

  • Facts and Rules
  • Queries and Inference
  • Recursion and Backtracking
  • List Manipulation
  • Arithmetic and Comparisons
  • Family Relationship Problems
  • AI Search Problems (e.g., Missionaries and Cannibals, 8-Puzzle)
  • Knowledge Base Design
  • Decision-Making and Logical Reasoning

🚀 How to Run the Programs

1️⃣ Install SWI-Prolog

If you don’t have it installed, download it from:
🔗 https://www.swi-prolog.org/Download.html

2️⃣ Open the Terminal or SWI-Prolog Console

Navigate to the directory where your .pl file is located.

📝 License

This project is open-source under the MIT License — feel free to use, modify, and distribute it.


🌟 Contributing

Contributions are welcome!
If you’d like to add new Prolog problems or improve the existing ones:

  1. Fork the repository
  2. Create a new branch (feature/new-problem)
  3. Commit your changes
  4. Open a Pull Request

🧩 Keywords

PrologAILogic ProgrammingFacts and RulesKnowledge BaseArtificial IntelligenceBacktrackingSWI-Prolog


"Logic will get you from A to B. Imagination will take you everywhere." — Albert Einstein


🙏 Thanks

Thank you for visiting this repository! Your contributions, suggestions, and feedback are highly appreciated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages