Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
AI2048
master
Top Level Namespace
Action
Agent
AI2048
AIACO
AITD
Ant
ApproxFunc
Board
DeepNetwork
LookUpTable
NeuralNetwork
Neuron
Player
RandomEnvironment
Statistic
Record
Synapse
Built with Crystal 1.9.2
2023-10-07 15:34:52 UTC
struct
Ant
Ant
Struct
Value
Object
Defined in:
AI2048/ai_aco.cr
Constructors
.new
Instance Method Summary
#initialize
#path
: Array(Action)
#save_action
(action)
#score
: Int32
#score=
(score : Int32)
#update_pheromon
(ph_map, rate)
Constructor Detail
def self.
new
#
[
View source
]
Instance Method Detail
def
initialize
#
[
View source
]
def
path
: Array(
Action
)
#
[
View source
]
def
save_action
(action)
#
[
View source
]
def
score
: Int32
#
[
View source
]
def
score=
(score : Int32)
#
[
View source
]
def
update_pheromon
(ph_map, rate)
#
[
View source
]