Monte Carlo

General discussion about computer chess...
BB+
Posts: 1484
Joined: Thu Jun 10, 2010 4:26 am

Re: Monte Carlo

Post by BB+ » Tue Nov 30, 2010 6:07 am

From http://rybkaforum.net/cgi-bin/rybkaforu ... l?tid=3061
LK: "Any positions where Rybka gets the wrong answer are more likely to get the right answer with the randomizer. But in general, if Rybka plays the wrong move because she can't see deeply enough, I would think that whether the randomizer plays the right move is, well, random. But if Rybka plays the wrong move because her evaluation function is missing some key principle, the randomizer is likely to choose the right move, unless it is necessary to know the principle to find the right moves. For example, before Rybka knew the principle of good and bad bishops, she would probably not choose a trade that left her with good knight against bad bishop if the trade was otherwise unattractive. But the randomizer would probably win many more games with the knight vs. bad bishop than without this advantage, even though Rybka did not know that this was an advantage."

I especially like the "before Rybka knew the principle of good and bad bishops", given some recent discussions. :)

Another link is http://rybkaforum.net/cgi-bin/rybkaforu ... l?tid=3020

User avatar
kingliveson
Posts: 1388
Joined: Thu Jun 10, 2010 1:22 am
Real Name: Franklin Titus
Location: 28°32'1"N 81°22'33"W

Re: Monte Carlo

Post by kingliveson » Wed Dec 01, 2010 9:21 am

r1bqkb1r/ppp2ppp/2n2n2/3pp3/3P4/2P1B2P/PP2PPP1/RN1QKBNR w - - 0 1

Analysis by IvanHoe 9.49b x64 Analyzer:

1.Nf3 Bd6 2.dxe5 Nxe5 3.Nbd2 Bf5 4.Qa4+ Qd7
= (0.25) Depth: 6 00:00:00 6kN

1.Nf3 Bd6 2.dxe5 Nxe5 3.Nbd2 Bf5 4.Qa4+ Qd7
= (0.25) Depth: 6 00:00:00 6kN

1.Nf3 Bd6 2.dxe5 Nxe5 3.Nbd2 Bd7 4.Nxe5 Bxe5 5.Nf3
= (0.17 --) Depth: 7 00:00:00 9kN

1.Nf3 Bd6 2.dxe5 Nxe5 3.Nbd2 Bd7 4.Nxe5 Bxe5 5.Nf3
= (0.09 --) Depth: 7 00:00:00 12kN

1.Nf3 e4 2.Ne5 Bd7 3.Nd2 Bd6 4.Nxd7 Qxd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op >> Rook >>Queen

User avatar
kingliveson
Posts: 1388
Joined: Thu Jun 10, 2010 1:22 am
Real Name: Franklin Titus
Location: 28°32'1"N 81°22'33"W

Re: Monte Carlo

Post by kingliveson » Wed Dec 01, 2010 9:27 am

64 MB Hash and 8 MB PawnsHash. Not that off from the other run with depth 10 and 10k games.
Monte Carlo Result

Move: d4e5
Occurrence: 10093
1-0: 839 = 8.31%
1/2-1/2: 6061 = 60.05%
0-1: 3193 = 31.64%
--------------
Move: g1f3
Occurrence: 10109
1-0: 1216 = 12.03%
1/2-1/2: 6178 = 61.11%
0-1: 2715 = 26.86%
--------------
*Final Result*

Games: 20202
1-0: 2055 = 10.17%
1/2-1/2: 12239 = 60.58%
0-1: 5908 =  29.24%
--------------
position fen r1bqkb1r/ppp2ppp/2n2n2/3pp3/3P4/2P1B2P/PP2PPP1/RN1QKBNR w - - 0 1
go montecarlo cpus 4 depth 12 moves g1f3 d4e5
From the table:

Code: Select all

       0.10         54.3 %   
       0.20         58.5 %  
Eval in post above is .16 for g1f3 so 57.41% is right on the mark, translating to ~52 ELO.

I am hoping down the line IvanHoe (GUI perhaps) would implement such feature that stats (tree) is also created for each subsequent move.
Attachments
montecarlo.log
(411.73 KiB) Downloaded 125 times
PAWN : Knight >> Bishop >> Rook >>Queen

Post Reply