Basic computer evolution is an almost direct simulation of the evolution that exists among real biological species. I wanted to apply this process for learning the optimal way to win a game so I wrote some software for a computer to play capture the flag.
The rules of this game are simple, each team is made up of 5 people. Their goal is to get to the other side and touch the opponents flag. If a player is on the opponent's turf, they can be tagged and taken out of the game, that is what the grayed-out blocks mean. The game ends when the time runs out (about 5 seconds) or the player reaches the opponent's flag. |