September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -20,19 +20,19 @@ func coincident(n,i,g,e) {
|
|||
}
|
||||
|
||||
func solve {
|
||||
CONTENT{:Nationality}.permutations{|nation|
|
||||
CONTENT{:Nationality}.permutations{|*nation|
|
||||
nation.first == :Norwegian ->
|
||||
&& CONTENT{:Colour}.permutations {|colour|
|
||||
&& CONTENT{:Colour}.permutations {|*colour|
|
||||
leftof(colour,:Green,colour,:White) ->
|
||||
&& coincident(nation,:English,colour,:Red) ->
|
||||
&& adjacent(nation,:Norwegian,colour,:Blue) ->
|
||||
&& CONTENT{:Pet}.permutations {|pet|
|
||||
&& CONTENT{:Pet}.permutations {|*pet|
|
||||
coincident(nation,:Swedish,pet,:Dog) ->
|
||||
&& CONTENT{:Drink}.permutations {|drink|
|
||||
&& CONTENT{:Drink}.permutations {|*drink|
|
||||
drink[2] == :Milk ->
|
||||
&& coincident(nation,:Danish,drink,:Tea) ->
|
||||
&& coincident(colour,:Green,drink,:Coffee) ->
|
||||
&& CONTENT{:Smoke}.permutations {|smoke|
|
||||
&& CONTENT{:Smoke}.permutations {|*smoke|
|
||||
coincident(smoke,:PallMall,pet,:Birds) ->
|
||||
&& coincident(smoke,:Dunhill,colour,:Yellow) ->
|
||||
&& coincident(smoke,:BlueMaster,drink,:Beer) ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue