From: Erik O. <er...@ma...> - 2000-07-09 11:01:58
|
On Fri, 7 Jul 2000, Txemi Fernandez wrote: > > I have not much code yet, but I have some ideas for the robot. > The example robots that I've seen don't save much information about the > state of the game. > I mean that they get messages and do some actions in response to each type > of message they receive. But what about some kind of system for "dependencies"? > Suppose a robot that is near a wall and another robot. If we want our robot > to be a killer ;-) we must program it so he don't worry about the wall > radar messages and go against the enemy robot. Sure, that's what makes robot-programming hard and fun :) The example robots are, of course, examples of different programming styles, and not written to be very good. > To do that, the robot needs to know "Yes, there is a wall in front-left.", > "Yes, there is a robot in front-right". "So, now what will I do?" > Do you know what I mean? Is it possible? It is possible, but you need to use the radar efficiently and try to keep track of you own position. If you look in MrFrosts robot database, you will find the robots WallCrawler and RoundAndRound, which are very good at this. /Erik |