class

LxChess::Computer

Inherits LxChess::Player < Reference < Object

Instance methods

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

Source
board_score(game : Game, turn : Int8 | Nil = nil)

Evaluate the score of a given board TODO: more positional analysis

Source
get_move(game : Game, turn : Int8 | Nil = nil)
Source
move_sets(game : Game, turn : Int8 | Nil = nil)
Source