1. Re: Robot challenge - More Complex Maze Needed!
On Fri, 6 Nov 1998 09:03:21 -0600, C & K L <candkNOSPAM2ME at TICNET.COM> wrote:
>It would be cool to have people create a few mazes so we can have a
>maze-racing circuit, of sorts. Irv, why don't you write a program that lets
>you create mazes and output a "maze file." Then, our robot-maze-racing
>program would load up a maze, load up the bot include files, then send them
>off to the maze races... you know what I mean?
Will do - but the maze must exist only on the screen - it's too easy
if you have a _map_!
>My mind went all over the place looking for a way to get a pixel through a
>maze... I'll share my insights after we've had a few more contestants ready
>to race. I think, though, that my strategy is probably one everybody would
>stumble across given enough time...
>
>If this is going to be the case, I'll need a few global variables/routines,
>I think... won't I?
>
Maybe not. I was thinking of: PositionBot(1) = YourBotMove(PositionBot(1))
passing the previous position {x,y} to YourBotMove(), and getting
a new one back. Same routine for Bot 2. Display would be done
within the main body of code. That way, any overhead
of displaying the bots would wash out. Also, by keeping the display
routines public, we could add some delays or step thru routines
to slow both bots down to below light speed.
After all, if you know your current position, you can look around
and choose a way to move, right? The choice is then up to you to
move in large jumps or small steps.
One thing though... I think there should be a rule that if you
bump into the opposing bot on your way, you have to stop there -
same as hitting a wall,
>Would it be okay if I added a laser weapon system to my bot, so I can shoot
>RalfBot into oblivion? MUHAHAHA! <ahem>
Phase II.