Zebra puzzle: Difference between revisions
Content deleted Content added
m →{{header|Phix}}: minor simplifications |
|||
Line 5,332: | Line 5,332: | ||
// might be {1,4,3,2,5} for the colours of 1..5 and finding |
// might be {1,4,3,2,5} for the colours of 1..5 and finding |
||
// v1 in that gives us a house number. Checking the specified |
// v1 in that gives us a house number. Checking the specified |
||
// condition, eg [h] == green && [h+1] == |
// condition, eg [h] == green && [h+1] == white is then easy. |
||
function left_of(integer c1, v1, c2, v2) |
function left_of(integer c1, v1, c2, v2) |