Re: Need a Challenge?
Dan Moyer wrote:
>I don't know how to deal with "relative position" information in my
>code/data structure ("The Norwegian lives NEXT DOOR to the blue house.", or
>"The green house is on the RIGHT of the white house.
I don't know what your data structure looks like, but you might just make a
set of explicit assertions:
next_to( house1, house2 )
next_to( house2, house1 )
next_to( house2, house3 )
next_to( house3, house2 )
next_to( house3, house4 )
next_to( house4, house3 )
next_to( house4, house5 )
next_to( house5, house4 )
so there is no math involved.
-- David Cuny
>
|
Not Categorized, Please Help
|
|