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
Policy::Random
Policy::Random
Policy::Base
Reference
Object
Direct Known Subclasses
Policy::WinNow
Defined in:
policy/random.cr
Class Method Summary
.policy
Instance Method Summary
#chosen_move
(_board, _player, moves)
Instance methods inherited from class
Policy::Base
chosen_move(_board, _player, _moves)
chosen_move
,
move_options(board)
move_options
,
play(board, as_player)
play
,
play_best(*args)
play_best
Class Method Detail
def self.
policy
#
[
View source
]
Instance Method Detail
def
chosen_move
(_board, _player, moves)
#
[
View source
]