Good question. I didn't even notice that. On investigation, I had a bug in my shuffle code. I'm embarrassed to say what I had in there the first time, but here is the fixed code...

I replaced this Java code:
        Collections.shuffle(mvlst);

with this C# code:
        for (int i = 0; i < mvlst.Count; i++)
        {
            int selected = (int)Math.Floor(rng.NextDouble() * (valid.Length - 
i)) + i;
            int temp = mvlst[i];
            mvlst[i] = mvlst[selected];
            mvlst[selected] = temp;
        }

Here are the new results:
        genmove b
        = E5
        (took 84 seconds -- this is faster now because I accidentally compiled 
a debug assembly before)

        ref-nodes
        = 111103758

        ref-score
        = 0.523571

I will send a ZIP file to the person who requested it.

Don, have you ever used Mono?  Maybe you could get it running in Linux and get 
that performance number.


Don Dailey wrote:
It rarely plays anything other that E5, was E6 a fluke?    The other
numbers look correct to me.

I haven't posted the Vala version yet, but I bet it would be even easier
to port from it, since Vala is heavily based on C#.   I thought it was
pretty easy to port from Java to Vala except that I spent too much time
digging around in the documentation because I don't know C# or Vala or
barely Java.

- Don


On Sat, 2008-10-25 at 00:46 -0400, Michael Williams wrote:
Porting the Java version to C# was really easy.  Here are the numbers for 0.5 
komi and 1000000 playouts:

genmove b
= E6
(took 136 seconds)

ref-nodes
= 111061901

ref-score
= 0.523573
_______________________________________________
computer-go mailing list
[email protected]
http://www.computer-go.org/mailman/listinfo/computer-go/

------------------------------------------------------------------------

_______________________________________________
computer-go mailing list
[email protected]
http://www.computer-go.org/mailman/listinfo/computer-go/

_______________________________________________
computer-go mailing list
[email protected]
http://www.computer-go.org/mailman/listinfo/computer-go/

Reply via email to