Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    Chess::PGN::EPD 0.21

    Download button

    No screenshots available
    Downloads: 652  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Hugh S. Myers | More programs
    Perl Artistic License / FREE
    August 15th, 2007, 08:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Chess::PGN::EPD description

    Chess::PGN::EPD is a Perl extension to produce and manipulate EPD text.

    Chess::PGN::EPD is a Perl extension to produce and manipulate EPD text.

    SYNOPSIS

    #!/usr/bin/perl
    #
    #
    use warnings;
    use strict;
    use Chess::PGN::Parse;
    use Chess::PGN::EPD;

    if ($ARGV[0]) {
    my $pgn = new Chess::PGN::Parse($ARGV[0]) or die "Can't open $ARGV[0]: $!n";
    while ($pgn->read_game()) {
    $pgn->parse_game();
    print join ( "n", epdlist( @{$pgn->moves()} ) ), "nn";
    }
    }
    OR
    #!/usr/bin/perl
    #
    #
    use warnings;
    use strict;
    use Chess::PGN::EPD;

    my $position = 'rnbqkb1r/ppp1pppp/5n2/3P4/8/8/PPPP1PPP/RNBQKBNR w KQkq -';
    print join("n",epdstr(epd => $position,type => 'latex'));
    OR
    #!/usr/bin/perl
    #
    #
    use strict;
    use warnings;
    use Chess::PGN::Parse;
    use Chess::PGN::EPD;

    if ($ARGV[0]) {
    my $pgn = new Chess::PGN::Parse($ARGV[0]) or die "Can't open $ARGV[0]: $!n";
    while ($pgn->read_game()) {
    my @epd;

    $pgn->parse_game();
    @epd = reverse epdlist( @{$pgn->moves()} );
    print '[ECO,"',epdcode('ECO',@epd),""]n";
    print '[NIC,"',epdcode('NIC',@epd),""]n";
    print '[Opening,"',epdcode('Opening',@epd),""]n";
    }
    }

    Requirements:

    · Perl



    Product's homepage

      


    TAGS:

    produce EPD text | manipulate EPD text | Perl module | EPD | text | chess



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM