depthnull
Posted: 04 Jul 2005, 19:35
Hi,
I believe that I have something to my works to me in danasah and not if uses somebody, he is relative to the reduction of the null move.
new_depth = depth - 1 - R - (depth>7) - (depth>9) -(depth>11) -(depth>13) -(depth>15)
R = 3, according to this I believe that I am applying until a R = 8.
With this the depth is greater in the same time, the problems are solved before and it does not seem that it causes errors.
I have proven to introduce the code in Fruit 2,1, the bad thing is that I do not make compilations very good, I lose almost 100.000 nps of speed.
Here you have a position analyzed with a version and another one, I have analyzed during 3 minutes, you can observe that the exit is the same one but the version with this change arrives deeper, and that as I say the compilation is 100.000 nps slower. Soon I made play the program with same himself and the result went 10 to 10. Not if with one more a faster compilation he had been favorable to the version that I did.
If somebody can make one more a compilation faster him I can send the modified code.
Who made the compilation of Fruit in the page of Leo? Fabien?
code for fruit:
[diag]r2q1rk1/ppp2p2/3pn3/3Np1pn/2B1P3/3PQP2/PPP2P2/1K1R2R1 w - - 0 18[/diag]
FEN: r2q1rk1/ppp2p2/3pn3/3Np1pn/2B1P3/3PQP2/PPP2P2/1K1R2R1 w - - 0 18
Fruit 2.1:
1/1 00:01 2 0 +1,12 Ra1
1/1 00:01 4 0 +1,19 Tc1
1/1 00:01 7 0 +1,20 Td2
1/1 00:01 10 0 +1,24 Th1
1/3 00:01 15 0 +1,25 Tg4
1/3 00:01 16 0 +1,27 a3
1/6 00:01 67 0 +1,35 Ab5
2/10 00:00 714 0 +1,02 Ab5 Chf4
3/10 00:00 1.265 0 +0,89 Ab5 Chf4 Ac4
3/10 00:00 1.559 0 +1,02 a3 Chf4 Th1
3/10 00:00 2.024 0 +1,19 Th1 Chf4 Tdg1
4/12 00:00 4.466 0 +1,06 Th1 Chf4 Tdg1 a5
5/19 00:00 16.786 0 +1,14 Th1 Chf4 Tdg1 c6 Cxf4 Cxf4
6/19 00:00 43.163 0 +1,18 Th1 Chf4 Tdg1 a5 Th6 Cxd5 Axd5
7/22 00:00 149.226 0 +1,30 Th1 Chf4 Th6 Cg2 Dd2 Cgf4 Tg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2
1/1 00:00 10 0 +1,24 Th1
1/3 00:00 15 0 +1,25 Tg4
1/3 00:00 16 0 +1,27 a3
1/6 00:00 67 0 +1,35 Ab5
2/10 00:00 714 0 +1,02 Ab5 Chf4
3/10 00:00 1.265 0 +0,89 Ab5 Chf4 Ac4
3/10 00:00 1.559 0 +1,02 a3 Chf4 Th1
3/10 00:00 2.024 0 +1,19 Th1 Chf4 Tdg1
4/12 00:00 4.466 0 +1,06 Th1 Chf4 Tdg1 a5
5/19 00:00 16.786 0 +1,14 Th1 Chf4 Tdg1 c6 Cxf4 Cxf4
6/19 00:00 43.163 0 +1,18 Th1 Chf4 Tdg1 a5 Th6 Cxd5 Axd5
7/22 00:00 149.226 0 +1,30 Th1 Chf4 Th6 Cg2 Dd2 Cgf4 Tg1 Cxd5 Axd5
8/25 00:00 250.478 0 +1,27 Th1 Chf4 Th6 Cg2 Dc1 Ch4 Th1 Cxf3 Cf6+ Rg7 Axe6 fxe6
9/27 00:01 521.749 494.560 +1,22 Th1 Chf4 Cxf4 exf4 Dd2 Df6 d4 a5 Dc3 c6
9/33 00:02 1.024.580 494.560 +2,31 Cxc7 Dxc7 Txg5+ Chg7 Tdg1 Tfc8 Txg7+ Cxg7 Dh6 Rf8 Txg7 d5 exd5
10/38 00:03 1.560.776 514.173 +3,75 Cxc7 Dxc7 Txg5+ Chg7 Tdg1 Tfd8 Txg7+ Cxg7 Dh6 Rf8 Txg7 d5 Axd5 Db6 Dh8+ Re7 Txf7+ Rd6
11/38 00:07 3.804.891 529.745 +4,21 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Ta4 Txa8 Txa7 Txa7 Dxa7
12/38 00:08 4.808.296 533.366 +4,21 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Ta4 Txa8 Txa7 Txa7 Dxa7
13/38 00:12 6.740.823 542.732 +4,24 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Td5 Txa8 Da3 Tc8 Dxa7
14/40 00:19 10.822.704 544.018 +4,24 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Td5 Txa8 Da3 Tc8 Dxa7
15/42 00:40 22.444.216 552.738 +4,20 Cxc7 Chf4 Cxa8 Rg7 c3 f6 Dxa7 Dxa8 Db6 Db8 d4 exd4 Axe6 Cxe6 Db5 Dc7 cxd4
16/52 01:02 34.819.733 553.079 +4,20 Cxc7 Chf4 Cxa8 Rg7 c3 f6 Dxa7 Dxa8 Db6 Db8 d4 exd4 Axe6 Cxe6 Db5 Dc7 cxd4
17/56 01:37 54.240.104 555.613 +4,12 Cxc7 Chf4 Cxa8 Rg7 Dxa7 Dxa8 Db6 Db8 Axe6 Cxe6 d4 exd4 f4 f6 f5 Cc5 Txd4 Th8
I believe that I have something to my works to me in danasah and not if uses somebody, he is relative to the reduction of the null move.
new_depth = depth - 1 - R - (depth>7) - (depth>9) -(depth>11) -(depth>13) -(depth>15)
R = 3, according to this I believe that I am applying until a R = 8.
With this the depth is greater in the same time, the problems are solved before and it does not seem that it causes errors.
I have proven to introduce the code in Fruit 2,1, the bad thing is that I do not make compilations very good, I lose almost 100.000 nps of speed.
Here you have a position analyzed with a version and another one, I have analyzed during 3 minutes, you can observe that the exit is the same one but the version with this change arrives deeper, and that as I say the compilation is 100.000 nps slower. Soon I made play the program with same himself and the result went 10 to 10. Not if with one more a faster compilation he had been favorable to the version that I did.
If somebody can make one more a compilation faster him I can send the modified code.
Who made the compilation of Fruit in the page of Leo? Fabien?
code for fruit:
- Code: Select all
// null-move pruning
if (UseNull && depth >= NullDepth+(depth>7)+(depth>9)+(depth>11)+(depth>13)+(depth>15) && node_type != NodePV) {
if (!in_check
&& !value_is_mate(beta)
&& do_null(board)
&& (!UseNullEval || depth <= NullReduction+1+(depth>7)+(depth>9)+(depth>11)+(depth>13)+(depth>15) || eval(board) >= beta)) {
// null-move search
new_depth = depth - NullReduction - 1 - (depth>7) - (depth>9) - (depth>11) - (depth>13) - (depth>15);
move_do_null(board,undo);
value = -full_search(board,-beta,-beta+1,new_depth,height+1,new_pv,NODE_OPP(node_type));
move_undo_null(board,undo);
[diag]r2q1rk1/ppp2p2/3pn3/3Np1pn/2B1P3/3PQP2/PPP2P2/1K1R2R1 w - - 0 18[/diag]
FEN: r2q1rk1/ppp2p2/3pn3/3Np1pn/2B1P3/3PQP2/PPP2P2/1K1R2R1 w - - 0 18
Fruit 2.1:
1/1 00:01 2 0 +1,12 Ra1
1/1 00:01 4 0 +1,19 Tc1
1/1 00:01 7 0 +1,20 Td2
1/1 00:01 10 0 +1,24 Th1
1/3 00:01 15 0 +1,25 Tg4
1/3 00:01 16 0 +1,27 a3
1/6 00:01 67 0 +1,35 Ab5
2/10 00:00 714 0 +1,02 Ab5 Chf4
3/10 00:00 1.265 0 +0,89 Ab5 Chf4 Ac4
3/10 00:00 1.559 0 +1,02 a3 Chf4 Th1
3/10 00:00 2.024 0 +1,19 Th1 Chf4 Tdg1
4/12 00:00 4.466 0 +1,06 Th1 Chf4 Tdg1 a5
5/19 00:00 16.786 0 +1,14 Th1 Chf4 Tdg1 c6 Cxf4 Cxf4
6/19 00:00 43.163 0 +1,18 Th1 Chf4 Tdg1 a5 Th6 Cxd5 Axd5
7/22 00:00 149.226 0 +1,30 Th1 Chf4 Th6 Cg2 Dd2 Cgf4 Tg1 Cxd5 Axd5
8/25 00:00 250.478 0 +1,27 Th1 Chf4 Th6 Cg2 Dc1 Ch4 Th1 Cxf3 Cf6+ Rg7 Axe6 fxe6
9/27 00:00 521.749 0 +1,22 Th1 Chf4 Cxf4 exf4 Dd2 Df6 d4 a5 Dc3 c6
9/32 00:01 1.066.210 563.241 +2,31 Cxc7 Dxc7 Txg5+ Chg7 Tdg1 Tfc8 Txg7+ Cxg7 Dh6 Rf8 Txg7 d5 exd5
10/38 00:02 1.680.089 581.222 +3,75 Cxc7 Dxc7 Txg5+ Chg7 Tdg1 Tfd8 Txg7+ Cxg7 Dh6 Rf8 Txg7 d5 Axd5 Db6 Dh8+ Re7 Txf7+ Rd6
11/38 00:06 4.098.118 610.383 +4,21 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Ta4 Txa8 Txa7 Txa7 Dxa7
12/39 00:09 5.721.050 615.521 +4,21 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Ta4 Txa8 Txa7 Txa7 Dxa7
13/39 00:13 8.554.609 624.569 +4,24 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Td5 Txa8 Da3 Tc8 Dxa7
14/39 00:21 13.628.395 632.623 +4,24 Cxc7 Chf4 Cxa8 Te8 d4 exd4 Txd4 De7 Axe6 Cxe6 Td5 Txa8 Da3 Tc8 Dxa7
15/49 00:42 27.649.917 644.771 +4,11 Cxc7 Chf4 Cxa8 Rg7 Dxa7 Dxa8 Db6 Db8 Axe6 Cxe6 d4 exd4 f4 f6 fxg5 fxg5 Db3
16/49 01:21 52.885.587 645.962 +4,20 Cxc7 Chf4 Cxa8 Rg7 c3 f6 Dxa7 Dxa8 Db6 Db8 Axe6 Cxe6 d4 exd4 Db5 Dc7 cxd4
Fruit 2.1_pce:
1/1 00:00 2 0 +1,12 Ra1
1/1 00:00 4 0 +1,19 Tc1
1/1 00:00 7 0 +1,20 Td2
1/1 00:00 10 0 +1,24 Th1
1/3 00:00 15 0 +1,25 Tg4
1/3 00:00 16 0 +1,27 a3
1/6 00:00 67 0 +1,35 Ab5
2/10 00:00 714 0 +1,02 Ab5 Chf4
3/10 00:00 1.265 0 +0,89 Ab5 Chf4 Ac4
3/10 00:00 1.559 0 +1,02 a3 Chf4 Th1
3/10 00:00 2.024 0 +1,19 Th1 Chf4 Tdg1
4/12 00:00 4.466 0 +1,06 Th1 Chf4 Tdg1 a5
5/19 00:00 16.786 0 +1,14 Th1 Chf4 Tdg1 c6 Cxf4 Cxf4
6/19 00:00 43.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