On 11/19/2010 03:03 AM, Joost 't Hart wrote: Hi. Scid time.
> On 11/18/2010 07:38 PM, Matthew Twomey wrote: >> I grabbed this from SVN and compiled it. I tried annotating with with >> both Stockfish an Crafty. >> >> Stockfish UCI >> ------------- >> Annotation appears to function as designed when "Annotate all moves" is >> enabled. >> >> Crafty 23.1 >> ----------- >> About every other time I start a Crafty analysis, the annotation text >> doesn't show the score, instead it just shows an Mx value (e.g. M1, >> M6, ...etc). However it does this in non-mating positions. For example, >> it indicates all moved it's suggesting are "M1" moves. Here is an >> example: >> >> 1.e4= >> Crafty v23.1:14:M1 >> >> (14:M1 1.Nf3 Nc6 2.Nc3 Nf6 3.e4 e5 4.Bb5 Bb4) >> >> So this is obviously not a mate situation. Once it starts doing this, if >> I exit SCID and restart it, the issue is usually resolved, but sometimes >> I have to exit and restart a couple of times. > > Ouch, this is a bug in my code. Actually, I did not test anything > with crafty, and I made a lazy (and false) assumption in translating > the engine scoring to Mx format. I will correct this. > > And I will conduct some trial runs with crafty as well. Right and got it. I knew/felt where the problem was, but it still took me some "thinking" to reproduce it :-) If you start scid and analyse a game with crafty all goes fine. And if the game is (respect!) a 99-out-of-100 game you can alternate between UCI and non-UCI annotations just fine . But: Analyse a game with a UCI engine that somehow ends in a position that allows the engine to spot a mate (e.g. 1.f4 e5 2.g4; the engine will propose Qh4# as a possible finish of the game). Then kill the engine. Go back in the game, and start another annotation (without book) from there, using a non-UCI engine. Then the problem shows. The score evaluation is still hampered by the mate preview by the previous annotation, which is not cleaned up. This non-cleaning is the bug. The only challenge remaining is to have and keep it filled before starting crafty. You succeeded :-) Note that the problem does not show if you enable book annotation. This cleans it. The fix is dearly simple. Will add it to CVS today. Thanks for spotting. Cheers, Joost. <zip> ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Scid-users mailing list Scid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scid-users