http://www.perlmonks.org?node_id=350337


in reply to Parsing Chess Algebra Notation

Before reinventing you own wheel, please have a look at Chess::PGN::Parse (containing, among other things, regexes to validate chess moves), Chess::PGN::EPD (containing the moves logic), Chess::PGN::Moves, and Chess::PGN::Filter.

Although they were developed by two different authors, they were planned together and developed as a unique tool.

As for the technique, A demanding parser and Perl, Chess, Lies, Damn Lies, and Statistics could be useful as well.

 _  _ _  _  
(_|| | |(_|><
 _|   

Replies are listed 'Best First'.
Re: Re: Parsing Chess Algebra Notation
by Steve_p (Priest) on May 04, 2004 at 22:09 UTC

    I am currently using Chess::PGN::Parse and have had no issues with it at all. I definately suggest it over attempting to write your own.

    If you are just writing your own version for fun, practice, or to learn something new, I'd say, "Great! Go for it!" Just don't release it to the CPAN unless you are adding a lot of new functionality or there is a speed improvement. If you have questions on releasing it or not, the authors of the other chess modules are here, and I'm sure they'd be glad chat about chess and Perl.

Re^2: Parsing Chess Algebra Notation
by Anonymous Monk on Jun 15, 2008 at 08:17 UTC
    Bingo bingo bingo, thank you very much this is EXACTLY what I have spent the last few hours trying very hard NOT to start writing!