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
RandomEnvironment
RandomEnvironment
Agent
Reference
Object
Defined in:
AI2048/agent.cr
Constructors
.new
(args : String =
""
)
Instance Method Summary
#engine
: Random::PCG32
#engine=
(engine : Random::PCG32)
#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
engine
: Random::PCG32
#
[
View source
]
def
engine=
(engine : Random::PCG32)
#
[
View source
]
def
take_action
(b :
Board
)
#
[
View source
]