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
Copy file name to clipboardexpand all lines: exercises/practice/zebra-puzzle/.docs/instructions.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -12,20 +12,20 @@ The following 15 statements are all known to be true:
12
12
1. There are five houses.
13
13
2. The Englishman lives in the red house.
14
14
3. The Spaniard owns the dog.
15
-
4.Coffee is drunk in the green house.
15
+
4.The person in the green house drinks coffee.
16
16
5. The Ukrainian drinks tea.
17
17
6. The green house is immediately to the right of the ivory house.
18
-
7. The Old Gold smoker owns snails.
19
-
8.Kools are smoked in the yellow house.
20
-
9.Milk is drunk in the middle house.
18
+
7. The snail owner likes to go dancing.
19
+
8.The person in the yellow house is a painter.
20
+
9.The person in the middle house drinks milk.
21
21
10. The Norwegian lives in the first house.
22
-
11. The man who smokes Chesterfields lives in the house next to the man with the fox.
23
-
12.Kools are smoked in the house next to the house where the horse is kept.
24
-
13. The Lucky Strike smoker drinks orange juice.
25
-
14. The Japanese smokes Parliaments.
22
+
11. The person who enjoys reading lives in the house next to the person with the fox.
23
+
12.The painter's house is next to the house with the horse.
24
+
13. The person who plays football drinks orange juice.
25
+
14. The Japanese person plays chess.
26
26
15. The Norwegian lives next to the blue house.
27
27
28
-
Additionally, 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.
28
+
Additionally, 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 engage in different hobbies.
29
29
30
30
~~~~exercism/note
31
31
There are 24 billion (5!⁵ = 24,883,200,000) possible solutions, so try ruling out as many solutions as possible.
Copy file name to clipboardexpand all lines: exercises/practice/zebra-puzzle/.docs/introduction.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Introduction
2
2
3
3
The Zebra Puzzle is a famous logic puzzle in which there are five houses, each painted a different color.
4
-
The houses have different inhabitants, who have different nationalities, own different pets, drink different beverages and smoke different brands of cigarettes.
4
+
The houses have different inhabitants, who have different nationalities, own different pets, drink different beverages and enjoy different hobbies.
5
5
6
6
To help you solve the puzzle, you're given 15 statements describing the solution.
7
7
However, only by combining the information in _all_ statements will you be able to find the solution to the puzzle.
0 commit comments