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::Base
Policy::Base
Reference
Object
Direct Known Subclasses
Policy::QLearning
Policy::Random
Policy::WinRandom
Defined in:
policy/base.cr
Instance Method Summary
#chosen_move
(_board, _player, _moves)
#move_options
(board)
#play
(board, as_player)
#play_best
(*args)
Instance Method Detail
def
chosen_move
(_board, _player, _moves)
#
[
View source
]
def
move_options
(board)
#
[
View source
]
def
play
(board, as_player)
#
[
View source
]
def
play_best
(*args)
#
[
View source
]