Class: Checkers::AI::Engine::Minmax

Inherits:
Base
  • Object
show all
Defined in:
lib/checkers/ai/engine/minmax.rb

Instance Attribute Summary

Attributes inherited from Base

#tree_depth

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Checkers::AI::Engine::Base

Instance Method Details

#next_board(board) ⇒ Object



7
8
9
# File 'lib/checkers/ai/engine/minmax.rb', line 7

def next_board(board)
  super(board) { |root, tree_depth| minmax(root, tree_depth, true) }
end