Gee, thought someone here would try for a FPC version ?
Here is mine, slow, difficult to read, fun to write.
Thanks Joanna
Davo
I wasn’t really planning to make code but regardless I think it’s a good idea to solve it manually to really understand it. The first 3 houses were the easiest to start with and the ivory and green house being adjacent .
The Englishman living in red house eliminated all other houses with known colors or nationalities. So it could only go in center. After that the puzzle was much easier than I had expected. The order in which the clues can be used is not immediately obvious. When I first tried to solve it I was not using the clues properly and I thought that I would have to try many different layouts. The pieces of paper made it a lot easier to see what was happening. I had to cycle through the clues to find the one that wasn’t ambiguous. So maybe the clue records would need a counter to check for multiple possibilities and skip it.
I think if I was going to try to code this I might use an array[1..5] of records for results.
The relationship between records in different columns is sort of tricky I guess logic would need to be added somehow .
In some cases like pet fox it only said next to but not which side. I’d have to think about that