12345678910111213141516171819202122232425262728293031323334353637 |
- var t = [
- ["Red", "White", "Yellow", "Blue", "Green"],
- ["Norwegian", "Dane", "Swede", "Englishman", "German"],
- ["Prince", "Blend", "Dunhill", "BlueMasters", "PallMall"],
- ["Water", "Bier", "Milk", "Tea", "Coffee"],
- ["Dogs", "Birds", "Cat", "Horses", "Fish"]
- ]
- /*
- The Englishman lives in the red house.<br>
- The Swede keeps dogs.<br>
- The Dane drinks tea.<br>
- The green house is just to the left of the white one.<br>
- The owner of the green house drinks coffee.<br>
- The Pall Mall smoker keeps birds.<br>
- The owner of the yellow house smokes Dunhills.<br>
- The man in the center house drinks milk.<br>
- The Norwegian lives in the first house.<br>
- The Blend smoker has a neighbor who keeps cats.<br>
- The man who smokes Blue Masters drinks bier.<br>
- The man who keeps horses lives next to the Dunhill smoker.<br>
- The German smokes Prince.<br>
- The Norwegian lives next to the blue house.<br>
- The Blend smoker has a neighbor who drinks water.<br>
- */
- var tt=[
- ["*", t[1][0], "*", "*", "*"],
- ["*", "*", "*", "*", "*"],
- ["*", "*", "*", t[3][2], "*"],
- ["*", "*", "*", "*", "*"],
- ["*", "*", "*", "*", "*"]
- ]
- console.log(tt)
|