IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
agent.cpp File Reference
#include "agent.hpp"
#include "Random.h"
#include <random>
#include <algorithm>

Namespaces

 genetic_operators
 

Macros

#define BINARY(OP)
 
#define UNARY(OP)
 

Functions

std::ostream & operator<< (std::ostream &os, const agent &a)
 
void genetic_operators::initialize (agent &a)
 
void genetic_operators::mutate (agent &a)
 
void genetic_operators::crossover (agent &a1, agent &a2)
 

Macro Definition Documentation

◆ BINARY

#define BINARY (   OP)
Value:
[](std::ostream& os, const agent& a, int reg_dst, int reg1, int reg2, int, int, int) \
{ \
os \
<< a.reg_to_string(reg_dst) \
<< " <- " \
<< a.reg_to_string(reg1) \
<< OP \
<< a.reg_to_string(reg2); \
}
Definition: agent.hpp:5

◆ UNARY

#define UNARY (   OP)
Value:
[](std::ostream& os, const agent& a, int reg_dst, int reg1, int, int, int, int) \
{ \
os \
<< a.reg_to_string(reg_dst) \
<< " <- " \
<< OP \
<< "(" \
<< a.reg_to_string(reg1) \
<< ")"; \
}
Definition: agent.hpp:5

Function Documentation

◆ operator<<()

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