IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
agent.hpp File Reference

Header of agent.cpp. More...

#include <vector>
#include <boost/serialization/vector.hpp>

Go to the source code of this file.

Classes

struct  agent
 Represents an agent, i.e. an AI. More...
 
struct  agent::parameters
 Represents the caracteristics of an agent. More...
 

Namespaces

 genetic_operators
 Handle genetic operations performed on agents.
 

Functions

std::ostream & operator<< (std::ostream &, const agent &)
 Operator << overloaded so that an agent's program can be displayed by using this operator directly on the agent. More...
 
void genetic_operators::initialize (agent &a)
 Initialize an agent with random instructions. More...
 
void genetic_operators::mutate (agent &a)
 Mutate an agent, i.e. modify some instructions. More...
 
void genetic_operators::crossover (agent &a1, agent &a2)
 Swap instructions between two agents. More...
 

Detailed Description

Header of agent.cpp.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const agent a 
)

Operator << overloaded so that an agent's program can be displayed by using this operator directly on the agent.

Returns
Display the agent's program