Next: Fitness Function
Up: Evolving Agents: The Tron
Previous: Evolving Agents: The Tron
Pseudocode of the foreground Tron server
- 1.
- Start with an agent population A of 100 robots.
- 2.
- For each let ca=0
- 3.
- (Loop)
While
, wait for events:
- (a)
- On event that a Java applet requests a game over the Internet,
Select an agent with probability
and send it to the applet.
- (b)
- On event that an applet reports the results of a game between
human h and agent a,
Save in database:
Game result (win, tie, or lose); human id, agent id, time stamp,
and list of moves.
If then let
ca=ca+1
- 4.
- Sort A according to fitness,
and let
- 5.
- Fetch 10 new agents from novelty engine and call them R
- 6.
- For each let ca=5.
For each let ca=0
Let
- 7.
- Go to (Loop)
Next: Fitness Function
Up: Evolving Agents: The Tron
Previous: Evolving Agents: The Tron
Pablo Funes
2001-05-08