McBrain solves a hard one quickly

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: McBrain solves a hard one quickly

Post by Dann Corbit »

The first pawn blockage detector was by Jeremiah Pennery and was grafted into Crafty for a few years.
I still keep that version around because it is very successful for positions where a wall exists, or a wall is about to be completed.

You had to make a special build in order to enable it:

evaluate.c ( 28): #if defined(DETECTDRAW)
evaluate.c ( 53): #if defined(DETECTDRAW)
evaluate.c ( 1173): #if defined(DETECTDRAW)
evaluate.c ( 3764): #if defined(DETECTDRAW)

Makefile ( 48): # -DDETECTDRAW This enables experimental code that detects lots of the
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
nabildanial
Posts: 126
Joined: Thu Jun 05, 2014 5:29 am
Location: Malaysia

Re: McBrain solves a hard one quickly

Post by nabildanial »

Sting SF 9.99 solves the problem instantly (1 sec) on my machine. Even though it doesn't show the correct eval, it is still pretty close to 0.
FEN: 3B4/1r2p3/r2p1p2/bkp1P1p1/1p1P1PPp/p1P4P/PPB1K3/8 w - - 0 1

Sting-sf-999:
1 00:01 5k 4k -8.76 c3-c4+
2 00:01 7k 5k -8.76 Bd8xa5 Ra6xa5
3 00:01 12k 9k -9.01 Bd8xa5 Kb5xa5 c3xb4+
4 00:01 18k 13k -9.69 Bd8xa5 a3xb2 c3xb4 c5xb4 f4xg5
5- 00:01 23k 16k -9.81 Bd8xa5 Ra6xa5
5 00:01 24k 17k -9.85 Bd8xa5 Ra6xa5 c3xb4 Kb5xb4 b2xa3+
6+ 00:01 28k 20k -9.68 e5xf6
6+ 00:01 29k 20k -9.61 e5xf6 Ba5xd8 f6-f7 a3xb2 f7-f8Q b4xc3 Qf8xd8 c5xd4 f4xg5 Ra6xa2
6+ 00:01 38k 27k -7.21 e5xf6 Ba5xd8 f6-f7 a3xb2 f7-f8Q b4xc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Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: McBrain solves a hard one quickly

Post by MikeB »

AndrewGrant wrote: Tue Jul 03, 2018 4:21 am Okay, in that case McBrain is still wrong with a -1200+ eval, even though it happened upon the "correct" move. Am I missing something more here?
You have to look at the pv moves, those are the moves that lead to a draw - hence why Dann said it was the "correct plan".
Image
Robert Flesher
Posts: 1280
Joined: Tue Aug 18, 2009 3:06 am

Re: McBrain solves a hard one quickly

Post by Robert Flesher »

New game
3B4/1r2p3/r2p1p2/bkp1P1p1/1p1P1PPp/p1P4P/PPB1K3/8 w - - 0 1

Analysis by Chiron 2 64bit:

1.Ba4+ Kxa4 2.b3+ Kb5 3.c4+ Kc6 4.d5+ Kd7 5.e6+ Kxd8 6.f5 Bc7 7.Kd3 Rb8 8.Ke2 Ra7 9.Kd3 Rb6 10.Ke2 Rb8 11.Kd3 Rb6 12.Ke2 Rb8
= (0.00) Depth: 33/60 00:00:36 50560kN
( 04.07.2018)
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: McBrain solves a hard one quickly

Post by MikeB »

AndrewGrant wrote: Tue Jul 03, 2018 4:21 am Okay, in that case McBrain is still wrong with a -1200+ eval, even though it happened upon the "correct" move. Am I missing something more here?
Correct eval is not accurate/ Dan's orignal post said "correct plan in 388 seconds", i.e. the pv was correct. SF/McB is not programmed to score these fortress type positions correctly as some engines , as a SugaR type engine can do.

Maybe that was a "lucky" smp hit on getting the correct plan, current dev McB does not come up with the correct plan on my machine in a reasonable time.
Image
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: McBrain solves a hard one quickly

Post by MikeB »

MikeB wrote: Fri Jul 27, 2018 7:31 am
AndrewGrant wrote: Tue Jul 03, 2018 4:21 am Okay, in that case McBrain is still wrong with a -1200+ eval, even though it happened upon the "correct" move. Am I missing something more here?
Correct eval is not accurate/ Dan's orignal post said "correct plan in 388 seconds", i.e. the pv was correct. SF/McB is not programmed to score these fortress type positions correctly as some engines , as a SugaR type engine can do.

Maybe that was a "lucky" smp hit on getting the correct plan, current dev McB does not come up with the correct plan on my machine in a reasonable time.
I knew I would be out for a bit and decided to let current dev McB noodle on this for a while - knowing that it would not score it correctly, but just to see if it sees the "plan" ...

Code: Select all

36	 -15.27 	54.0G	28:18.30	Ba4+ Kxa4 b3+ Kb5 c4+ Kc6 d5+ Kd7 e6+ Kxd8 f5 Bb6 Kf1 Rc7 Ke2 Ra8 Kf2 Rb8 Kg2 Ra7 Kh1 Rba8 Kg2 Ra5 Kf2 Kc7 Kf3 R5a6 Kg2 Rf8 Kf3 Kb7 Kg2 Rb8 Kf2 Rd8 Kf3 Rc8 Kf2 Raa8 Kg2 Rc7 Kf2 Rg8 
 35	 -15.27 	54.0G	28:17.34	Ba4+ Kxa4 b3+ Kb5 c4+ Kc6 d5+ Kd7 e6+ Kxd8 f5 Bb6 Kf1 Rc7 Ke2 Ra8 Kf2 Rb8 Kg2 Ra7 Kh1 Rba8 Kg2 Ra5 Kf2 Kc7 Kf3 R5a6 Kg2 Rf8 Kf3 Kb7 Kg2 Rb8 Kf2 Rd8 Kf3 Rc8 Kf2 Raa8 Kg2 Rc7 Kf2 
 35	 -14.77?	28.9G	15:17.20	b3 Bxd8? 
 35	 -13.52?	15.1G	8:04.09	b3 Bxd8? 
 34	 -12.26 	8.31G	4:27.08	b3 Bxd8 c4+ Kb6 d5 dxe5 f5 Rc7 Kf3 Rd7 Bd3 Bc7 Be4 Bd6 Kg2 Ra5 Bd3 Raa7 Be4 Rd8 Bf3 Rg8 Be2 Rc8 Bf3 Rac7 Be4 Rf8 Bd3 Rd7 Be4 Kb7 Bb1 Rf7 Kf2 Rc7 Be4 
Image