Java AI

Discussion in 'Java' started by Cristi1213, Mar 28, 2011.

  1. Cristi1213

    Cristi1213 New Member

    Jan 17, 2011
    Likes Received:
    Trophy Points:
    I need a program to compute the following problem: on a riverside there are 2 children and one adult. There is a boat which can be used to transport 2 children, one child, or one adult. Whenever the boat passes the riverside there has to be at least one person in it. We have to move the 2 children and the adult on the other side of the river.In theory it goes like this: I generate a tree with all the possible valid moves, than search until we have the result(Uninformed search), but I can't seem to have an idea on how to actually start the program. Can anyone help me with some ideas?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice