class LxChess::Computer
- LxChess::Computer
- LxChess::Player
- Reference
- Object
Defined in:
lx_chess/computer.crInstance Method Summary
- #ai?
-
#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
-
#board_score(game : Game, turn : Int8 | Nil = nil)
Evaluate the score of a given board TODO: more positional analysis
- #get_move(game : Game, turn : Int8 | Nil = nil)
- #move_sets(game : Game, turn : Int8 | Nil = nil)
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
Generate an array of moves (from => to) which result in an even or best score
TODO promotion, pruning
Evaluate the score of a given board
TODO more positional analysis