![]() |
IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
|
#include <atomic>
#include <limits>
#include <string>
#include <fstream>
#include "ThreadPool.h"
#include <vector>
#include <ale_interface.hpp>
Go to the source code of this file.
Namespaces | |
Utils | |
A set of useful method and class. | |
Functions | |
void | Utils::atomic_add (std::atomic< T > &f, T d) |
Perform an atomic addition. More... | |
T | Utils::rotl (const T x, const int k) |
Rotate bytes to the left. More... | |
bool | Utils::is7bit (int c) |
Check if a value is written on 7 bits. More... | |
size_t | Utils::ceilMultiple (size_t a, size_t b) |
Calculate the closest value from a such that this new value is a multiple of b. More... | |
int | Utils::secam_to_range_index (int i) |
Transform a secam color value to a power of two. More... | |
void | Utils::secam210x160_to_42x32 (const std::vector< unsigned char > &screen, std::vector< unsigned char > &screen42x32) |
Reduce the screen from 210x160 to 42x32. More... | |
void | Utils::init_ALE () |
Initialize the emulator from the config file. More... | |
vector< vector< string > > | Utils::read_Config () |
Store values extracted from the config file to a vector. More... | |
Variables | |
Utils::ThreadPool | thread_pool |
ALEInterface | ALE |
Header of Utils.hpp.
ALEInterface ALE |
ALE interface used to run the agent
Utils::ThreadPool thread_pool |