Insanely buggy move generator, please help

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

petero2
Posts: 688
Joined: Mon Apr 19, 2010 7:07 pm
Location: Sweden
Full name: Peter Osterlund

Re: Insanely buggy move generator, please help

Post by petero2 »

JVMerlino wrote:Indeed. When you can do ALL of these correctly, then you can pretty safely say that your movegen is accurate:

8/3K4/2p5/p2b2r1/5k2/8/8/1q6 b - - 1 67 // perft(7) = 493,407,547
I think there is a typo here. Should be 493,407,574
User avatar
jsgroby
Posts: 83
Joined: Mon Mar 24, 2014 12:26 am
Location: Glen Carbon, IL USA

Re: Insanely buggy move generator, please help

Post by jsgroby »

petero2 wrote:
JVMerlino wrote:Indeed. When you can do ALL of these correctly, then you can pretty safely say that your movegen is accurate:

8/3K4/2p5/p2b2r1/5k2/8/8/1q6 b - - 1 67 // perft(7) = 493,407,547
I think there is a typo here. Should be 493,407,574
I agree, my engine says:

Test Complete : 493407574 nodes visited
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Insanely buggy move generator, please help

Post by zullil »

jsgroby wrote:
petero2 wrote:
JVMerlino wrote:Indeed. When you can do ALL of these correctly, then you can pretty safely say that your movegen is accurate:

8/3K4/2p5/p2b2r1/5k2/8/8/1q6 b - - 1 67 // perft(7) = 493,407,547
I think there is a typo here. Should be 493,407,574
I agree, my engine says:

Test Complete : 493407574 nodes visited
My perft concurs, 574 not 547:

Code: Select all

louis@LZsT5610:~/Documents/Chess/Kirby$ ./perft_pa
FEN string = 8/3K4/2p5/p2b2r1/5k2/8/8/1q6 b - -
Depth = 7
Leaf nodes = 493407574
Time taken = 9114 ms
JVMerlino
Posts: 1357
Joined: Wed Mar 08, 2006 10:15 pm
Location: San Francisco, California

Re: Insanely buggy move generator, please help

Post by JVMerlino »

petero2 wrote:
JVMerlino wrote:Indeed. When you can do ALL of these correctly, then you can pretty safely say that your movegen is accurate:

8/3K4/2p5/p2b2r1/5k2/8/8/1q6 b - - 1 67 // perft(7) = 493,407,547
I think there is a typo here. Should be 493,407,574
Yep, typo. Combined with a bit of dyslexia it's amazing my engine works at all!

Thanks
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Insanely buggy move generator, please help

Post by Sven »

vittyvirus wrote:Here's what it generates for white:
Please check your PM.
User avatar
vittyvirus
Posts: 646
Joined: Wed Jun 18, 2014 2:30 pm
Full name: Fahad Syed

Re: Insanely buggy move generator, please help

Post by vittyvirus »

Sven Schüle wrote:
vittyvirus wrote:Here's what it generates for white:
Please check your PM.
I'm sorry, but I seriously can't reply you on PM.
"No such user exists"
Would you mind if I'd reply you here?
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Insanely buggy move generator, please help

Post by Sven »

vittyvirus wrote:
Sven Schüle wrote:
vittyvirus wrote:Here's what it generates for white:
Please check your PM.
I'm sorry, but I seriously can't reply you on PM.
"No such user exists"
Would you mind if I'd reply you here?
Well, it seems I do exist ... Don't reply to my PM here, please. Maybe the admin Sam Hull can help you to find out why replying to my PM does not work for you.
User avatar
jsgroby
Posts: 83
Joined: Mon Mar 24, 2014 12:26 am
Location: Glen Carbon, IL USA

Re: Insanely buggy move generator, please help

Post by jsgroby »

Have not heard from you much regarding your engine lately. How are things going? Have you tested your move generator and squashed the bugs?
ZirconiumX
Posts: 1334
Joined: Sun Jul 17, 2011 11:14 am

Re: Insanely buggy move generator, please help

Post by ZirconiumX »

jsgroby wrote:Have not heard from you much regarding your engine lately. How are things going? Have you tested your move generator and squashed the bugs?
Haven't heard much from him either. He was interested in working with me, so I sent him what little code I had, and asked him to write a FEN parser for it, because the ones I had written were buggy, and didn't work. That was 10 days ago. Haven't seen any progress from him since then.

Matthew:out
Some believe in the almighty dollar.

I believe in the almighty printf statement.
Henk
Posts: 7218
Joined: Mon May 27, 2013 10:31 am

Re: Insanely buggy move generator, please help

Post by Henk »

Maybe he's studying LALR(1) grammar's.