Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Prolog Puzzle Project

Prolog Puzzle Project

Please read the following instructions and make sure you can finish it on time. And note the puzzles you choose in coding. And it must be tested in this way:
check :-
solution(S), solve(S),
aggregate_all(count, (solve(_T)), Count), format(“Found ~w solutions~n”, [Count]),
Count=1.
Overview
The “funniest” way I can think of to practice logic programming is to use it to solve a logic puzzle. A logic puzzle is typically presented as a mystery and list of clues that can be used to infer facts such as “who done it”.
For this assignment, we will use the Printable Logic Puzzles(Links to an external site.) website to find two puzzles to solve. One will be a “challenging” puzzle and the other will be a “Very Hard” puzzle.
For this assignment, you will write all of the clues as rules in a prolog program.
Your prolog file must obey the following format:

The name of the prolog files must be ‘challenging.pl’ and ‘veryhard.pl’
Your prolog file must provide a url/1 fact to get the URL of the puzzle being solced.
Your prolog file must also provide a solution/1 fact with the correct solution hardcoded in. You will get the correct solution from the Printable Logic Puzzles(Links to an external site.) website.
Your prolog file must provide a solve/1 rule that uses the clues to find one, and only one, table that is the solution.
Your puzzle must have a series of clueX(T) rules that are satisfied whenever the solution in T is consistent with clue X.
Your puzzle must include the check rule as follows:

check :- solution(S), solve(S), aggregate_all(count, (solve(_T)), Count), format(“Found ~w solutions~n”, [Count]), Count=1.
To receive credit, your puzzle must find one, and only one, solution to the puzzle.
Your assignment will be checked by running swipl in the docker container as follows:
swipl -q -g check -g halt challenging.pl
or
swipl -q -g check -g halt veryhard.pl
which will use your solve and solution predicates to make sure you find exactly one solution and that it is the correct solution.
You can, of course, work on your solution using SWISH(Links to an external site.) in which case you may want to also use their table rendering plugin(Links to an external site.) to display your solution. Once you have a solution, however, you should confirm that it runs properly in the container. This may mean commenting out the part where you load the plugin.
Checking Your Solution
make check
or
make check-challenging
make check-veryhard
All of these MUST pass before you submit the assignment.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Homework Free Org

Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.

© 2020 Homework Free Org