class LxChess::MoveTree

Defined in:

lx_chess/move_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(score : Int32, turn : Int8) #

[View source]

Instance Method Detail

def <<(other : Branch) #

[View source]
def best_branches : Array({Int16, Int16, LxChess::MoveTree}) #

[View source]
def branches : Array({Int16, Int16, LxChess::MoveTree}) #

[View source]
def branches=(branches : Array(Tuple(Int16, Int16, LxChess::MoveTree))) #

[View source]
def parent : MoveTree | Nil #

[View source]
def parent=(parent : MoveTree | Nil) #

[View source]
def score : Int32 #

[View source]
def score=(score : Int32) #

[View source]
def to_s(io = STDOUT, depth = 0) #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def turn : Int8 #

[View source]