class AIACO

Defined in:

AI2048/ai_aco.cr

Constant Summary

DECAY_RATE = 0.0025
EVAPORATION_RATE = 0.01
EXPLOITATION_RATE = 0.9
LEARNING_RATE = 0.04

Constructors

Instance Method Summary

Instance methods inherited from class Agent

check_for_win(b : Board) check_for_win, close_episode(flag : String = "") close_episode, name name, open_episode(flag : String = "") open_episode, prop : Hash(String, String) prop, prop=(prop : Hash(String, String)) prop=, take_action(b : Board) take_action

Constructor methods inherited from class Agent

new(args : String = "") new

Constructor Detail

def self.new(args : String) #

[View source]

Instance Method Detail

def engine : Random::PCG32 #

[View source]
def engine=(engine : Random::PCG32) #

[View source]
def evaluate_desirable(b, r) #

[View source]
def learning(s1, a, r, s2, s3) #

[View source]
def save_action(action) #

[View source]
def take_action(b : Board) #

[View source]
def update_pheromons(score) #

[View source]