• Bill Talada (1/15/2010)


    If t-sql supported arrays, I would have implemented a gnarly shaped maze of walls and partial dividers and the robot would have adapted beautifully.

    How would you define a "wall type"?

    If I understood the basic concept it should be easy to have either nothing (0), a can (1) or a wall (2) as the possible "status" of a cell.

    Instead of the pattern you used you could also have

    1120010010

    1121101111

    0010222222

    1110201010

    2000100001

    2100111100

    1111101111

    1100100111

    0111011122

    0110000101

    , where 2 would represent a wall.

    I don't understand why that can't be done.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]