ein3.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. var t = [
  2. ["Red", "White", "Yellow", "Blue", "Green"],
  3. ["Norwegian", "Dane", "Swede", "Englishman", "German"],
  4. ["Prince", "Blend", "Dunhill", "BlueMasters", "PallMall"],
  5. ["Water", "Bier", "Milk", "Tea", "Coffee"],
  6. ["Dogs", "Birds", "Cat", "Horses", "Fish"]
  7. ]
  8. /*
  9. The Englishman lives in the red house.<br>
  10. The Swede keeps dogs.<br>
  11. The Dane drinks tea.<br>
  12. The green house is just to the left of the white one.<br>
  13. The owner of the green house drinks coffee.<br>
  14. The Pall Mall smoker keeps birds.<br>
  15. The owner of the yellow house smokes Dunhills.<br>
  16. The man in the center house drinks milk.<br>
  17. The Norwegian lives in the first house.<br>
  18. The Blend smoker has a neighbor who keeps cats.<br>
  19. The man who smokes Blue Masters drinks bier.<br>
  20. The man who keeps horses lives next to the Dunhill smoker.<br>
  21. The German smokes Prince.<br>
  22. The Norwegian lives next to the blue house.<br>
  23. The Blend smoker has a neighbor who drinks water.<br>
  24. */
  25. var tt=[
  26. ["*", t[1][0], "*", "*", "*"],
  27. ["*", "*", "*", "*", "*"],
  28. ["*", "*", "*", t[3][2], "*"],
  29. ["*", "*", "*", "*", "*"],
  30. ["*", "*", "*", "*", "*"]
  31. ]
  32. console.log(tt)