fixed source code links to go to repo.or.cz repository
[applet-bots.git] / src / appletbots / RandomAgent.java
blobb058430a43de37d5d6c4bb7dcd6c24c48d123cb3
1 /*
2 * Copyright (c) 2002 Erik Rasmussen - All Rights Reserverd
3 */
4 package appletbots;
7 /**
8 * This is an agent that doesn't really react to stimuli in the world, it
9 * simply accelerates in a random direction. If you're trying to write an
10 * agent and a RandomAgent performs the task better than your agent, you
11 * <b>seriously</b> need to take another look at your agent algorithm!
13 * @author Erik Rasmussen
15 public class RandomAgent extends Agent
17 /**
18 * Ignores any world stimuli and sets the acceleration randomly.
20 public void observeWorld()
22 setAcceleration(getRandomAcceleration());