Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Parsing Chess Algebra Notation

by gmax (Abbot)
on May 04, 2004 at 13:52 UTC ( #350337=note: print w/replies, xml ) Need Help??

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!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://350337]
[Discipulus]: marto also Re^2: Catalyst:: Dispatcher - usage of expand_actions has signature polemic, and yesterday was quoted in CB
[marto]: Discipulus concerned partys should report things. as tye mentioned in his post (linked in the other thread from yesterday) there is an approach and strategy for such things

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-06-23 08:44 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (538 votes). Check out past polls.