You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen a mentoring request on Zebra Puzzle and they asks "[is there a way] to solve it using code". Reviewing the exercise itself;
`Solve the zebra puzzle.
There are five houses.
The Englishman lives in the red house.
The Spaniard owns the dog.
Coffee is drunk in the green house.
The Ukrainian drinks tea.
The green house is immediately to the right of the ivory house.
The Old Gold smoker owns snails.
Kools are smoked in the yellow house.
Milk is drunk in the middle house.
The Norwegian lives in the first house.
The man who smokes Chesterfields lives in the house next to the man with the fox.
Kools are smoked in the house next to the house where the horse is kept.
The Lucky Strike smoker drinks orange juice.
The Japanese smokes Parliaments.
The Norwegian lives next to the blue house.
Each of the five houses is painted a different color, and their inhabitants are of different national extractions, own different pets, drink different beverages and smoke different brands of cigarettes.
Which of the residents drinks water? Who owns the zebra?`
This seems like a logic question and not a Python-specific question. Besides, the answer is literally available at Tests:
class ZebraPuzzleTest(unittest.TestCase): def test_resident_who_drinks_water(self): self.assertEqual(drinks_water(), "Norwegian") def test_resident_who_owns_zebra(self): self.assertEqual(owns_zebra(), "Japanese")
If I were to solve this algorithmically, it would definitely step into AI territory and isn't in the Python syllabus. (The method would be similar to https://github.com/KevinLiTian/Harvard_CS50_AI/tree/main/1.Knowledge/knights , but the gist is the implementation of said algorithm, or even the data structure required to solve this is horribly out of scope)
Therefore, I propose removing Zebra Puzzle from the Python exercises.
The text was updated successfully, but these errors were encountered:
At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.
This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!
If you're interested in learning more about this auto-responder, please read this blog post.
Proposal to cut Zebra Puzzle
Rationale
I have seen a mentoring request on Zebra Puzzle and they asks "[is there a way] to solve it using code". Reviewing the exercise itself;
`Solve the zebra puzzle.
Each of the five houses is painted a different color, and their inhabitants are of different national extractions, own different pets, drink different beverages and smoke different brands of cigarettes.
Which of the residents drinks water? Who owns the zebra?`
This seems like a logic question and not a Python-specific question. Besides, the answer is literally available at Tests:
class ZebraPuzzleTest(unittest.TestCase): def test_resident_who_drinks_water(self): self.assertEqual(drinks_water(), "Norwegian") def test_resident_who_owns_zebra(self): self.assertEqual(owns_zebra(), "Japanese")
If I were to solve this algorithmically, it would definitely step into AI territory and isn't in the Python syllabus. (The method would be similar to https://github.com/KevinLiTian/Harvard_CS50_AI/tree/main/1.Knowledge/knights , but the gist is the implementation of said algorithm, or even the data structure required to solve this is horribly out of scope)
Therefore, I propose removing Zebra Puzzle from the Python exercises.
The text was updated successfully, but these errors were encountered: