Test Position - Jason Haglund vs Joshua Haglund; 0-1

Discussion of chess software programming and technical issues.

Moderator: Ras

jhaglund
Posts: 173
Joined: Sun May 11, 2008 7:43 am

Re: Test Position - Jason Haglund vs Joshua Haglund; 0-1

Post by jhaglund »

Nice work :)

This is 23.1?

Did you ever look into re-implementing position.lrn?

enable|disable position learn

This way it won't interfere with your testing...
I really like that feature, and I dislike using old versions.

A position parser would be handy also. Parse fen, epd files then add these positions to position.bin, with new scores.

then... RELoadLearn();

Joshua
Michel
Posts: 2292
Joined: Mon Sep 29, 2008 1:50 am

Re: Test Position - Jason Haglund vs Joshua Haglund; 0-1

Post by Michel »

It takes GnuChess 5.07.14btest 14 seconds to find it on a core duo (1 cpu)
memory 68
easy
setboard 1r4k1/q4pp1/2p1p2p/1r3n2/N1Q5/1P1R4/P5PP/1K1R4 b - - 1 1
analyze
1 131 0 61 Ne3
2 73 0 149 Ne3 Rd7 Nxc4 Rxa7
2 73 0 288 Ne3 Rd7 Nxc4 Rxa7
3 40 0 528 Ne3 Rd8+ Kh7 Qe4+ f5
3 59 0 799 Qc7 Rd7 Qxh2 Qxc6
3 72 0 990 Rd5 Qxc6 Nd4
3 72 0 1567 Rd5 Qxc6 Nd4
4 51 0 2026 Rd5 Qxc6 Ne3 Rxd5 Nxd5
4 68 0 3171 Qa5 h4 Qb4 Qxb4 Rxb4
4 68 0 4238 Qa5 h4 Qb4 Qxb4 Rxb4
5 66 1 8382 Qa5 Nc3 Rc5 Qb4
5 89 2 13689 Qc7 Nc3 Rb4 Qc5 e5
5 89 2 18390 Qc7 Nc3 Rb4 Qc5 e5
6 91 3 23929 Qc7 Rd7 Qxh2 Qxc6 Qe5 Rd8+ Rxd8 Rxd8+ Kh7 Nc3
6 91 4 30136 Qc7 Rd7 Qxh2 Qxc6 Qe5 Rd8+ Rxd8 Rxd8+ Kh7 Nc3
7 92 8 45786 Qc7 Rd7 Qxh2 Nc3 Qxg2 Rd8+ Kh7 Nxb5 Rxb5
7 92 12 61532 Qc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rxa2 Qc3 Rxg2 Rbd8 Rxh2 R8d7 Qa2+ Kc1 Qa3+ Kb1 Kg8
14 178 1626 18359546 Rb4 Rd8+ Kh7 Qxc6 Rxa4 Rxb8 Rxa2 Qc3 Rxg2 Rbd8 Rxh2 R1d2
14 178 2735 31625011 Rb4 Rd8+ Kh7 Qxc6 Rxa4 Rxb8 Rxa2 Qc3 Rxg2 Rbd8 Rxh2 R1d2
15 248 4138 49147048 Rb4 Rd8+ Kh7 Qxc6 Rxa4 Rxb8 Rxa2 Qc3 Rxg2 Rbd8 Ne3 R8d2
15 248 6684 78139859 Rb4 Rd8+ Kh7 Qxc6 Rxa4 Rxb8 Rxa2 Qc3 Rxg2 Rbd8
It seems to prefer Rd8 as a reply by white but plays correctly Rxa4 after Qxc6.
Michel
Posts: 2292
Joined: Mon Sep 29, 2008 1:50 am

Re: Test Position - Jason Haglund vs Joshua Haglund; 0-1

Post by Michel »

In contrast stock GNU Chess 5.07 needs 57 seconds to find it.
GNU Chess 5.07
Adjusting HashSize to 1048576 slots
Transposition table: Entries=1024K Size=49152K
Pawn hash table: Entries=0K Size=32K
White (1) : setboard 1r4k1/q4pp1/2p1p2p/1r3n2/N1Q5/1P1R4/P5PP/1K1R4 b - - 1 1
Black (1) : analyze
Black (1) : Root = 73, Phase = 3
Time = 5.00, Max = 20.00, Left = 0.00, Moves = 0
Ply Time Eval Nodes Principal-Variation
1. 0.00 131 58 Ne3
2& 0.00 73 184 Ne3 Rd7 Nxc4 Rxa7
2. 0.00 73 346 Ne3 Rd7 Nxc4 Rxa7
3& 0.00 40 709 Ne3 Rd8+ Kh7 Qe4+ f5
3& 0.00 59 1223 Qc7 g4 Ne7
3& 0.00 72 1858 Rd5 Qxc6 Nd4
3. 0.00 72 2883 Rd5 Qxc6 Nd4
4& 0.00 51 4195 Rd5 Qxc6 Ne3 Rxd5 Nxd5
4& 0.01 69 12267 Qc7 Nc3 Rb4 Qc5 Qxh2 Qxc6
4. 0.01 69 14808 Qc7 Nc3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rxb8 Rxa2 Qc3 Rxg2
Rbd8 Rxh2 R8d7 Qa2+ Kc1
jhaglund
Posts: 173
Joined: Sun May 11, 2008 7:43 am

Re: Test Position - Jason Haglund vs Joshua Haglund; 0-1

Post by jhaglund »

11& 57.54 170 108434877 Rb4 Qxc6 Rxa4 Rd8+ Kh7 Rxb8 Rxa2 Qc3 Rxg2...
This is looking better...

Not too shabby if you ask me :)
jhaglund
Posts: 173
Joined: Sun May 11, 2008 7:43 am

Re: Test Position - Jason Haglund vs Joshua Haglund; 0-1

Post by jhaglund »

It seems to prefer Rd8 as a reply by white but plays correctly Rxa4 after Qxc6.
Crafty does this also... it seems.

Though, Qxc6 was the move actually played first, either way, the continuation is the same.

Kh7 is forced. Maybe it's the way the program prefers checks in the search?

Joshua
jhaglund
Posts: 173
Joined: Sun May 11, 2008 7:43 am

Re: Test Position - Jason Haglund vs Joshua Haglund; 0-1

Post by jhaglund »

On my "clunker"...

Crafty JE 1.01 (Joshua Edition)

Code: Select all

 14	-3.02	669.1M	10:28.19	1. ... Rb4 2. Qxc6 Rxa4 3. Rd8+ Kh7 4. Rxb8 Rxa2 5. Qc3 Rxg2 6. Rc8 Qa2+ 7. Kc1 Ne3 8. Re1 Rc2+ 9. Qxc2+ Nxc2 10. Rxc2 Qxb3
 14	-3.02	564.3M	8:52.59	1. ... Rb4 2. Qxc6 Rxa4 3. Rd8+ Kh7 4. Rxb8 Rxa2 5. Qc3 Rxg2 6. Rc8 Qa2+ 7. Kc1 Ne3 8. Re1 Rc2+ 9. Qxc2+ Nxc2 10. Rxc2 Qxb3
 13	-3.02	444.6M	7:03.69	1. ... Rb4 2. Qxc6 Rxa4 3. Rd8+ Kh7 4. Rxb8 Rxa2 5. Qc3 Rxg2 6. Rc8 Qa2+ 7. Kc1 Ne3 8. Re1 Rc2+ 9. Qxc2+ Nxc2 10. Rxc2 Qxb3
 13	-3.02	413.3M	6:35.94	1. ... Rb4 2. Qxc6 Rxa4 3. Rd8+ Kh7 4. Rxb8 Rxa2 5. Qc3 Rxg2 6. Rc8 Qa2+ 7. Kc1 Ne3 8. Re1 Rc2+ 9. Qxc2+ Nxc2 10. Rxc2 Qxb3
 13	-2.57	379.5M	6:05.70	1. ... Rb4!!
 12	-2.17	323.4M	5:12.05	1. ... Rb4 2. Rd8+ Kh7 3. Qxc6 Rxa4 4. Rxb8 Rxa2 5. Qc3 Rxg2 6. Re8 Qa2+ 7. Kc1 Rxh2 8. Rd7 Qa3+ 9. Kb1
 12	-2.17	317.6M	5:06.83	1. ... Rb4 2. Rd8+ Kh7 3. Qxc6 Rxa4 4. Rxb8 Rxa2 5. Qc3 Rxg2 6. Re8 Qa2+ 7. Kc1 Rxh2 8. Rd7 Qa3+ 9. Kb1
 12	-2.16	300.7M	4:51.17	1. ... Rb4!!
The government should have a "cash for clunkers" on computers. :lol:
User avatar
Eelco de Groot
Posts: 4671
Joined: Sun Mar 12, 2006 2:40 am
Full name:   Eelco de Groot

Re: Test Position - Jason Haglund vs Joshua Haglund; 0-1

Post by Eelco de Groot »

jhaglund wrote:Yes, I think it's a good test position or I wouldn't have posted it.

My brother knew I was going after the knight for rook, with the rook pin. Qxc6 was bait earlier.
14.01 0:32 +0.80-- 1...Rb4 2.Qxc6 Rxa4 3.Rd8+ Kh7
4.Rxb8 Rxa2 5.Qc3 Rxg2
What was played...

We should of recorded all the moves of this game.

Thanks,

Joshua
I can't explain the Fail Low scores that Rainbow Serpent is having at the moment. Like that +0.80-- score, these scores are obviously far too low and seem to happen if a side branch of the PV gets chosen. In this case 2.Qxc6 which was not yet in the PV.

I get a better result now, but probably that is only because the Fail Lows happen to be a bit higher, so no switching of the first move occurred. I will try to investigate where this is coming from, it is a bit embarassing...

[d]1r4k1/q4pp1/2p1p2p/1r3n2/N1Q5/1P1R4/P5PP/1K1R4 b - -

Engine: Rainbow Serpent 1.5 Build 026 (Athlon 2009 MHz, 256 MB)
by Romstad, Costalba, Kiiski, De Groot

7.00 0:00 +1.97 1...Rd5 2.Nc3 Rxd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
8.Qf7+ Kh4 9.Rxd1 Qe4+ 10.Kc1 Rd5
11.Rxd5 cxd5 12.Qxg7 Rc8+ 13.Nc3 Qe3+
14.Kc2 Rc6 (20.726.172.664) 280

18 1231:59+1.81 1...Rd5 2.Qxc6 Rxd3 3.Rxd3 Qg1+
4.Qc1 Qxg2 5.Qd2 Qf1+ 6.Kb2 e5 7.Nc5 Nd4
8.b4 f5 9.a4 f4 10.Nb3 Nxb3 11.Rxb3 Qc4
12.Ka3 Rc8 13.a5 Qb5 14.Rc3 Rxc3+ (20.726.172.664) 280

best move: Rb5-d5 time: 1242:55.734 min n/s: 280.422 nodes: 20.912.700.716
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan