46
Suggestions / Bot color as output and debugging tool
« on: July 21, 2011, 09:57:36 AM »
Today I was thinking about AI when I wondered how a bot could communicate with the outside world. It would be easier to observe and debug the bot if you had some sort of indicater as to what the bot is thinking about. I propose that we add a way for bots to change their color on command. There are several uses for this:
Here are two ways to implement this:
- You can have different parts of a multibot change to different colors. This adds a visual effect, and can be useful to make sure all of the robots are doing the right thing and becoming the right part of the multibot.
- Have the bot change colors when doing different things. This also adds a visual effect and is also useful when making sure the robot is in the right "mode" of operation
- As a debugging tool. You can program the bot so that it turns red if a certain gene activates, for example
Here are two ways to implement this:
- Create a memory location for the color. The value is the color, with 0 = red and 32000 = purple. This value does NOT reset after each cycle. There should be a way to turn this feature on and off.
- Create three memory locations. They are the red, green, and blue values for the color. These memory locations do NOT reset after each cycle. There should be a way to turn this feature on and off.