Re: Robot challenge

new topic     » goto parent     » topic index » view thread      » older message » newer message

>Ralf, remind me: Does your mazer routine guarantee a start and finish
>location? And can you go ahead and add code that puts a green circle and
>red square at the start and finish, respectively?

Every point in the maze is in some way connected to any other point in the
maze.
It is a clean maze thus. From wherever you start, you *can* get where-ever
you want, however its a maze, so you usually dont take the most direct route
to the point blink

You can give him a starting map, off which he will respect. All color values
above 0 are considered walls, however place them with the same 'grid', since
if you maze is built-up walls that are all 5 pixels apart, then only every
5th pixel is checked. ( I believe, its been some time )

But I dont think you need a starting map.

This would work:

include mazer.e        -- Make sure its Mazer2

function make_maze (sequence dim, integer space, integer color )
    return mazer ( dim, flv_die_hard (space, dim/2, color) )
end function

Ralf

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu