class Policy::WinNowBlock
- Policy::WinNowBlock
- Policy::WinNow
- Policy::Random
- Policy::Base
- Reference
- Object
Direct Known Subclasses
Defined in:
policy/win_now_block.crClass Method Summary
Instance Method Summary
- #blocking_move(board, player, moves)
- #chosen_move(board, player, moves)
-
#other_player(player)
TODO this class also 'knows' about player numbering, extract to another class sometime
Instance methods inherited from class Policy::WinNow
chosen_move(board, player, moves)
chosen_move
Class methods inherited from class Policy::WinNow
policy
policy
Instance methods inherited from class Policy::Random
chosen_move(_board, _player, moves)
chosen_move
Class methods inherited from class Policy::Random
policy
policy
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
Instance Method Detail
def other_player(player)
#
TODO this class also 'knows' about player numbering, extract to another class sometime