{"id":24288801,"url":"https://github.com/anniepoo/prolog-examples","last_synced_at":"2026-01-26T12:36:36.534Z","repository":{"id":5118447,"uuid":"6282985","full_name":"Anniepoo/prolog-examples","owner":"Anniepoo","description":"Some simple examples for new Prolog programmers","archived":false,"fork":false,"pushed_at":"2022-11-04T13:05:51.000Z","size":87,"stargazers_count":585,"open_issues_count":4,"forks_count":176,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-01-16T10:57:24.304Z","etag":null,"topics":["family-tree","prolog"],"latest_commit_sha":null,"homepage":null,"language":"Prolog","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Raynes/ororo","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anniepoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-18T17:49:32.000Z","updated_at":"2025-01-13T21:26:04.000Z","dependencies_parsed_at":"2022-09-12T07:20:43.155Z","dependency_job_id":null,"html_url":"https://github.com/Anniepoo/prolog-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anniepoo%2Fprolog-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anniepoo%2Fprolog-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anniepoo%2Fprolog-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anniepoo%2Fprolog-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anniepoo","download_url":"https://codeload.github.com/Anniepoo/prolog-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242128820,"owners_count":20076259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["family-tree","prolog"],"created_at":"2025-01-16T10:50:31.869Z","updated_at":"2026-01-26T12:36:31.510Z","avatar_url":"https://github.com/Anniepoo.png","language":"Prolog","funding_links":[],"categories":[],"sub_categories":[],"readme":"prolog-examples\n===============\n\nSome simple examples for new Prolog programmers.\nVarying degrees of polish. Have fun.\n\n## finished examples\n\n###  detective problem\n\nThese are two approaches to solving a detective's problem.\nShe's interrogated three witnesses to a murder, all of whom are also suspects.\nThe problem is to determine which of the suspect's testimony is\ninconsistent with the others.\n\n * detectivepuzzle.pl - My original solution, written when I was new to Prolog.\nIt now feels very 'imperative'\n * newdetective.pl - I recently rewrote it\n * adriandetective.pl - Adrian King's solution\n\n\n### talespin2.pl\n\nImplementation of a classic story generator\n(note that a far better implementation is at https://github.com/SWI-Prolog-Education/talespin-annie)\n\n### tictactoe.pl\n\nImplementation of tic tac toe\n\n### birds.pl\n\n The birds example from the 'expert systems in Prolog' tutorial\n by Amzi (on the web)\n\n### cannibals2.pl\n\n A well commented example of the cannibals/missionaries problem\n\n This was used as an example for a talk whose notes are in may15version.txt\n\n cannibals2nocomments.pl has fewer comments, but has some additional capabilities\n\n### cuttutorial.pl\n\nA little story analogy to help understand cut and cut, fail\n\n### emoticons.pl\n\n A joke. I'm known for my happy array of 'smiley' emoticons. Sometimes others\n have trouble understanding my smileys.  This program purports to help.\n\n### familytree.pl\n\n The classic familytree example. This one has two separate families in it.\n (left as exercise for the reader to find the two disconnected groups).\n\n### socketdemo.pl\n\n Demonstration of reading from a socket\n\n## Constraint examples\n\n Examples of CLPFD\n\n### addlists.pl\n\n Constrains two lists to pairwise add to a third.\n\n### children.pl\n\n A fully worked problem involving seating children in a classroom\n\n### constraintolist.pl\n\n A fully worked problem, constraining a variable to be a member of a list.\n\n### sudoku.pl\n\n Solves a Sudoku puzzle by CLPFD\n\n### loops.pl\n\n Demo of various ways to do in Prolog what you'd do with loops in\n an imperative language.\n\n### nqueens.pl\nImplementation of the generalized version of the classic 8-queens problem.\n\n### techtree2.pl\n\nsolve game 'tech tree' problems using CHR.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanniepoo%2Fprolog-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanniepoo%2Fprolog-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanniepoo%2Fprolog-examples/lists"}