Chess::Play

Play chess games, calculate legal moves, use a search algorithm
Download

Chess::Play Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Giuliano Ippoliti
  • Publisher web site:
  • http://search.cpan.org/~gippoliti/

Chess::Play Tags


Chess::Play Description

Play chess games, calculate legal moves, use a search algorithm Chess::Play is a Perl module to play chess games, calculate legal moves, use a search algorithm.SYNOPSIS use Chess::Play; my $cp = Chess::Play->new(); $cp->reset(); $cp->import_fen($fen) $cp->export_fen() $cp->set_piece_val($p_val, $n_val, $b_val, $r_val, $q_val); $cp->set_depth($depth) $cp->legal_moves() $cp->do_move($move) $cp->best_move() $cp->game_over(); $cp->print_board(); $cp->play() $cp->xboard_play()This module allows to play a chess game using STDIN or the xboard graphical interface. Il also can calculate legal moves and uses the Alpha-Beta search algorithm to find the best move. Requirements: · Perl


Chess::Play Related Software