class YAGA::Bot(T, V)

Defined in:

yaga/bot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(generation : UInt64 = 0_u64) #

[View source]

Instance Method Detail

def ==(other : Bot(T, V)) : Bool #

[View source]
def activate(*args, **options) #

[View source]
def activate(*args, **options, &) #

[View source]
def brain_size : UInt64 #

[View source]
def crossover(other : Bot(T, V)) : Void #

[View source]
def fitness #

[View source]
def fitness=(fitness : V) #

[View source]
def generation #

[View source]
def generation=(generation : UInt64) #

[View source]
def genome #

[View source]
def mutate(*args, **options) #

[View source]
def mutate(*args, **options, &) #

[View source]
def replace(other : Bot(T, V)) : Void #

[View source]
def same?(other : Bot(T, V)) : Bool #

[View source]
def to_json(*args, **options) #

[View source]
def to_json(*args, **options, &) #

[View source]
def update_random(*args, **options) #

[View source]
def update_random(*args, **options, &) #

[View source]