A Flash Developer Resource Site

Page 2 of 3 FirstFirst 123 LastLast
Results 21 to 40 of 45

Thread: Einstein's Riddle :: Who own's the fish?

  1. #21
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,986
    enjoyed that one?

    somebody sent me a japanese IQ test that's done in Flash.

    I downloaded it and hosted it at my own site to avoid some slow freeweb site.

    read: It's not mine, and I don't know who to give proper credit to.

    [ Hello ] | [ gerbick ] | [ Ω ]

  2. #22
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    LMFAO, that is great!!!

    i have no idea what i am supposed to do, i just like watching them hit eachother

  3. #23
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    ok, that 1 wasn't near as hard but way more fun...
    those wacky japanese........
    Last edited by admedia; 04-25-2005 at 12:41 AM.

  4. #24
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,986
    now... I must be stupid or some idiot. I got the Einstein one on damn near one read, and mostly in my head. But that Japanese one... I just can't finish.

    [ Hello ] | [ gerbick ] | [ Ω ]

  5. #25
    poet and narcisist argonauta's Avatar
    Join Date
    Nov 2001
    Location
    Under the bed
    Posts
    2,080
    Originally posted by gerbick
    enjoyed that one?

    somebody sent me a japanese IQ test that's done in Flash.

    I downloaded it and hosted it at my own site to avoid some slow freeweb site.

    read: It's not mine, and I don't know who to give proper credit to.
    that was pretty cool, but it was harder to figure out which were boys or who was the mother than actually solve it
    my blog: blog.innocuo
    Sponsored by your mom.

  6. #26
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    took me about 10 minutes, the einstein deal took... well.. it's almost embarassing... and there is no way in hell i woulda gotten it without the worksheet.

  7. #27
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,986
    awwh hell. I finally got it. Not thinking solved it.

    [ Hello ] | [ gerbick ] | [ Ω ]

  8. #28
    poet and narcisist argonauta's Avatar
    Join Date
    Nov 2001
    Location
    Under the bed
    Posts
    2,080
    einstein one is solved
    [edit]
    good thing i saw these in non-office hours, this is a bad distraction from work, and actually more productive
    [/edit]
    my blog: blog.innocuo
    Sponsored by your mom.

  9. #29
    Senior Member
    Join Date
    Nov 2001
    Location
    The Netherlands
    Posts
    336
    Originally posted by gerbick
    now... I must be stupid or some idiot. I got the Einstein one on damn near one read, and mostly in my head.
    Man that's sick, I solved it in about 18 minutes, but I could have NEVER done it without writing it down.
    (I have the short-term memory of that goldfish )

    Gonna check the Japanese now hehe, gotta do something to get through the day right?

    EDIT: Haha, the Japanese one is very cool, not as hard as the Einstein one, but definately amusing!
    Last edited by MTEV; 04-25-2005 at 02:23 AM.

  10. #30
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988
    yay! I got it. I used to live for these type of puzzles.

    I also found this which is source code for a program that solves it. I would hate to have that as a project.

  11. #31
    (sic) Covenent's Avatar
    Join Date
    Dec 2000
    Location
    Ireland
    Posts
    709
    Solved in about 20mins including lots of interuptions due to work.

    Good puzzle.

  12. #32
    Senior Member RazoRmedia's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    3,016
    I solved the einstein one, as did 3 of my colleagues in about 10-20 so I doubt its the top 2% of the population.

    good puzzle though.

  13. #33
    Under the influence bvgroote's Avatar
    Join Date
    Nov 2000
    Location
    Perth, Australia
    Posts
    1,408
    The guy who drinks water, he owns the fish cos fishes cant swim in coffee.


    KAKAKKA

  14. #34
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    my dad and I solved this a few years back. Thanks for the memory, ugg.

  15. #35
    Member
    Join Date
    Jul 2003
    Posts
    57
    Originally posted by Dricciotti
    yay! I got it. I used to live for these type of puzzles.

    I also found this which is source code for a program that solves it. I would hate to have that as a project.
    They solved it using the wrong programming language. C++ was never designed for that sort of problem. Functional languages (Prolog, SML, Rex, etc) are perfect for it. Just define the hints, and let the compiler do the rest. This example is a little different, but same basic concept:

    /*
    The five houses puzzle

    Five men with different nationalities live in the first five houses of a street.
    They smoke five distinct kinds of cigarettes, and each of them has a favorite
    animal and a favorite drink, all of them different. The five houses are
    painted different colors. The following facts are know:
    1. The Englishman lives in a red house.
    2. The Spaniard owns a dog.
    3. The owner of the green house drinks coffee.
    4. The Ukrainian drinks tea.
    5. The green house is to the right of the ivory one.
    6. The person who smoke winstons breeds snails.
    7. In the yellow house one smokes kools.
    8. Milk is drunk in the middle house.
    9. The Norwegian lives in the first house on the left.
    10. The house of the fox is next to the one of the chesterfields smoker.
    11. The house of the horse is next to the one of the kools smoker.
    12. The lucky strikes smoker drinks orange juice.
    13. The Japanese smokes parliaments.
    14. The Norwegian's house is next to the blue one.

    Where does the zebra live? And who drinks water?

    */
    % house(Color,Nationality,Animal,Drink,Cigarettes)

    main :-
    houses(Houses),
    member(house(red, english, _, _, _), Houses),
    member(house(_, spanish, dog, _, _), Houses),
    member(house(green, _, _, coffee, _), Houses),
    member(house(_, ukrainian, _, tea, _), Houses),
    right_of(house(green,_,_,_,_), house(ivory,_,_,_,_), Houses),
    member(house(_, _, snails, _, winstons), Houses),
    member(house(yellow, _, _, _, kools), Houses),
    Houses = [_, _, house(_, _, _, milk, _), _,_],
    Houses = [house(_, norwegian, _, _, _)|_],
    next_to(house(_,_,_,_,chesterfields), house(_,_,fox,_,_), Houses),
    next_to(house(_,_,_,_,kools), house(_,_,horse,_,_), Houses),
    member(house(_, _, _, orange_juice, lucky_strikes), Houses),
    member(house(_, japanese, _, _, parliaments), Houses),
    next_to(house(_,norwegian,_,_,_), house(blue,_,_,_,_), Houses),
    member(house(_, _, zebra, _, _), Houses),
    member(house(_, _, _, water, _), Houses),
    print_houses(Houses).


    houses([
    house(_, _, _, _, _),
    house(_, _, _, _, _),
    house(_, _, _, _, _),
    house(_, _, _, _, _),
    house(_, _, _, _, _)
    ]).

    right_of(A, B, [B, A | _]).
    right_of(A, B, [_ | Y]) :- right_of(A, B, Y).

    next_to(A, B, [A, B | _]).
    next_to(A, B, [B, A | _]).
    next_to(A, B, [_ | Y]) :- next_to(A, B, Y).

    member(X, [X|_]).
    member(X, [_|Y]) :- member(X, Y).

    print_houses([A|B]) :- !,
    write(A), nl,
    print_houses(B).
    print_houses([]).

    % Solution
    % house(yellow,norwegian,fox,water,kools)
    % house(blue,ukrainian,horse,tea,chesterfields)
    % house(red,english,snails,milk,winstons)
    % house(ivory,spanish,dog,orange_juice,lucky_strikes )
    % house(green,japanese,zebra,coffee,parliaments)

  16. #36
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988
    people use C/C++ for everything though. I am guessing that this code was from a college level programming class.

    I would almost (if I had nothing else to do) like to do it in a different language and do a time comparison.

    Also, I think I could even do it a lot faster in C than they did
    Last edited by Dricciotti; 04-25-2005 at 11:21 PM.

  17. #37
    illusion luvenny's Avatar
    Join Date
    Sep 2004
    Location
    In your mind
    Posts
    303
    did you guys read this ?

    that's the nerdiest page as PalexC said

  18. #38
    Senior Member RazoRmedia's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    3,016
    arrr, Prolog, that brings back horrific and haunted memories of Uni. I did my dissertation on expert systems and artificial intelligence.

    It was hell

  19. #39
    Peace - Just in Heaven koolbabs2000's Avatar
    Join Date
    Nov 2000
    Location
    Somewhere in Time
    Posts
    148
    Finally got it after two hours of scribbling on teh rough sheets.
    Good interesting puzzle. Cheers !!!
    An eye for an eye makes the whole world blind
    - The Mahatma.

  20. #40
    Member
    Join Date
    Mar 2004
    Location
    607-NY
    Posts
    97
    Got the japanese one, It took me six minutes.......seven if you count intentionally making the mother beat the children

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center