Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
q-learning-crystal
master
Board
Game
Player
Policy
Base
QLearning
Random
WinNow
WinNowBlock
WinNowBlockNaiveLine
WinNowBlockTrap
WinRandom
Q
Learning
Crystal
Qsa
QsaValue
QsaValuesIndexedByMoveAndPlayer
QsaValuesIndexedByPlayer
QsaValuesIndexedByStateMoveAndPlayer
Series
Built with Crystal 1.9.2
2023-10-08 14:14:43 UTC
class
Game
Game
Reference
Object
Defined in:
game.cr
Constructors
.new
(player_a_policy : Policy::Base, player_b_policy : Policy::Base, trace : Bool =
true
)
Instance Method Summary
#other_player
(player)
#play
(best =
false
)
#play_best
Constructor Detail
def self.
new
(player_a_policy :
Policy::Base
, player_b_policy :
Policy::Base
, trace : Bool =
true
)
#
[
View source
]
Instance Method Detail
def
other_player
(player)
#
[
View source
]
def
play
(best =
false
)
#
[
View source
]
def
play_best
#
[
View source
]