class LxChess::Computer

Defined in:

lx_chess/computer.cr

Instance Method Summary

Instance methods inherited from class LxChess::Player

ai? ai?, castle_king : Bool castle_king, castle_king=(castle_king : Bool) castle_king=, castle_queen : Bool castle_queen, castle_queen=(castle_queen : Bool) castle_queen=, get_move(game) get_move, no_castling! no_castling!

Instance Method Detail

def ai? #

[View source]
def best_moves(game : Game, turn : Int8 | Nil = nil, depth = 0, root_tree : MoveTree | Nil = nil) #

Generate an array of moves (from => to) which result in an even or best score

TODO promotion, pruning


[View source]
def board_score(game : Game, turn : Int8 | Nil = nil) #

Evaluate the score of a given board

TODO more positional analysis


[View source]
def get_move(game : Game, turn : Int8 | Nil = nil) #

[View source]
def move_sets(game : Game, turn : Int8 | Nil = nil) #

[View source]