Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Cutting Zebra Puzzle #3553

Closed
clarissa-au opened this issue Nov 24, 2023 · 1 comment
Closed

[Draft] Cutting Zebra Puzzle #3553

clarissa-au opened this issue Nov 24, 2023 · 1 comment

Comments

@clarissa-au
Copy link

clarissa-au commented Nov 24, 2023

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.

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.

Copy link
Contributor

Hello. Thanks for opening an issue on Exercism 🙂

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant