This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
sc330_f2016:prolog1 [2018/10/19 21:46] morse |
sc330_f2016:prolog1 [2018/10/19 21:49] morse |
||
---|---|---|---|
Line 30: | Line 30: | ||
To help you start, we've provided a [[smapleSolution.pl|sample solution]] to {{sc330_f2016:tie.png?linkonly|It's a tie}}. Use this as a model for your own Prolog solutions. | To help you start, we've provided a [[smapleSolution.pl|sample solution]] to {{sc330_f2016:tie.png?linkonly|It's a tie}}. Use this as a model for your own Prolog solutions. | ||
- | |||
- | Note that there are links above to the solutions for these two puzzles. We strong encourage taking a few minutes to solve these puzzles by hand so that you get a feel for how to solve them and the "facts" you're extracting from the clues in the puzzle. This will give you a better feel for what you need to encode in your Prolog solution as well helping you get a feel for what Prolog's trying to do under the hood. (And it's fun!) | ||
====Notes==== | ====Notes==== | ||
+ | *There are links above to the solutions (not the Prolog code) for these two puzzles. We strong encourage taking a few minutes to solve these puzzles by hand so that you get a feel for how to solve them and the "facts" you're extracting from the clues in the puzzle. This will give you a better feel for what you need to encode in your Prolog solution as well as giving you a feel for what Prolog's trying to do under the hood. (And it's fun!) | ||
*Just copy and paste the all_different function. It simply checks to make sure each item in the list is unique. | *Just copy and paste the all_different function. It simply checks to make sure each item in the list is unique. | ||
*Check spelling errors. There is no such thing as misspelled atoms. So speigel and spiegel are both valid but different. | *Check spelling errors. There is no such thing as misspelled atoms. So speigel and spiegel are both valid but different. |