class Policy::WinNowBlockTrap

Defined in:

policy/win_now_block_trap.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Policy::WinNowBlockNaiveLine

chosen_move(board, player, moves) chosen_move, naive_line_move(board, player, moves) naive_line_move, naive_line_moves(board, player, moves) naive_line_moves

Class methods inherited from class Policy::WinNowBlockNaiveLine

policy policy

Instance methods inherited from class Policy::WinNowBlock

blocking_move(board, player, moves) blocking_move, chosen_move(board, player, moves) chosen_move, other_player(player) other_player

Class methods inherited from class Policy::WinNowBlock

policy policy

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

def self.policy #

[View source]

Instance Method Detail

def chosen_move(board, player, moves) #

[View source]
def trap_move(board, player, moves) #

[View source]
def trap_moves(board, player, moves) #

Choose lines that offer 2 winning moves next time


[View source]