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
class
AITD
AITD
Agent
Reference
Object
Defined in:
AI2048/ai_td.cr
Constant Summary
LEARNING_RATE
=
0.04
Constructors
.new
(args : String)
Instance Method Summary
#evaluate
(b : Board, op)
#learning
(s1, a, r, s2, s3)
#take_action
(b : Board)
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
evaluate
(b :
Board
, op)
#
[
View source
]
def
learning
(s1, a, r, s2, s3)
#
[
View source
]
def
take_action
(b :
Board
)
#
[
View source
]