Re: Botmatch
- Posted by Mike <michael at IGRIN.CO.NZ> Nov 09, 1998
- 443 views
Actually, there a kind of maze where this would not always work. This is one that has a (or part of a)maze structure *not* connected to any exterior walls. If the 'bot attaches to any element in this structure then it will go round 'n round. A solution would be to record your start position and if this position is encountered again then some virtual decision needs to be made to start looking for some wall not previously traversed. Mike. -----Original Message----- From: Hawke <mdeland at NWINFO.NET> To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU> Date: Monday, November 09, 1998 3:43 PM Subject: Re: Botmatch >Ralf Nieuwenhuijsen wrote: >>And if some one, would please make a bot, that >>at least, *always* finds the way through the maze.. >quick idea on that is you always take lefts (or rights, >which ever you prefer) unless you *cant*... >this way you will always be hugging a wall, and you >will *always* get out... an advanced form of that >is leaving a string tied to a stake in the ground, >unraveling as you go to let you know if you've been >there before... > >once you have those 2 (somewhat easy) code fragments... >piece 'cake :| >