Seeking node counter tool

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

mjlef
Posts: 1494
Joined: Thu Mar 30, 2006 2:08 pm

Seeking node counter tool

Post by mjlef »

Now that I am a bit more active in programming again, I want to tune my program's move ordering. What I would like is a tool to run a big bunch of positions through, search them to fixed depth, then count up the total nodes searched on my UCI program. Is there a nice simple tool to do this?

Mark
User avatar
Bill Rogers
Posts: 3562
Joined: Thu Mar 09, 2006 3:54 am
Location: San Jose, California

Re: Seeking node counter tool

Post by Bill Rogers »

Most programs just include a variable within their program to count each new node as the program generates it. Mine only counts legal move nodes
Bill
MattieShoes
Posts: 718
Joined: Fri Mar 20, 2009 8:59 pm

Re: Seeking node counter tool

Post by MattieShoes »

I don't think there's an external tool specifically for this. It should be relatively simple to write a function that flips through positions and keeps a running tally of nodes though.

One possible alternative is to keep a tally of how many moves were searched before the current one whenever score>alpha. If you're not searching an enormous number of positions, this could be more useful, maybe...
User avatar
Bill Rogers
Posts: 3562
Joined: Thu Mar 09, 2006 3:54 am
Location: San Jose, California

Re: Seeking node counter tool

Post by Bill Rogers »

Isn't that exactly what I said?
Bill
Gian-Carlo Pascutto
Posts: 1243
Joined: Sat Dec 13, 2008 7:00 pm

Re: Seeking node counter tool

Post by Gian-Carlo Pascutto »

No, what you said had nothing to do with his question.

He wants a program that takes his engine, runs it through positions, and adds the nodecounts.

He obviously already has a node counter inside the program.
User avatar
Jim Ablett
Posts: 1384
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Seeking node counter tool

Post by Jim Ablett »

mjlef wrote:Now that I am a bit more active in programming again, I want to tune my program's move ordering. What I would like is a tool to run a big bunch of positions through, search them to fixed depth, then count up the total nodes searched on my UCI program. Is there a nice simple tool to do this?

Mark
Hi Mark,

Thomas Mayer's modified Epd2Wb by Bruce Moreland can also handle Uci engines and does
pretty much all you've asked for. It shows node count for each solution as it goes along. Total
nodes should be easy to add to it. (C src included)

Download:
http://www.mediafire.com/?nmynigzmg4y

Jim.
mjlef
Posts: 1494
Joined: Thu Mar 30, 2006 2:08 pm

Re: Seeking node counter tool

Post by mjlef »

Thanks!
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Seeking node counter tool

Post by sje »

What you need are two tools: a driver that runs your program with specified search parameters on a problem set, and a statistical analysis program that looks at the results.

If your program can generate EPD and the statistics part of the solution is EPD driven, then half of the task is solved. This approach has the benefit of using common code and of not being specific to the UCI protocol.

Symbolic has an interactive command interface that substitutes for the xboard (or UCI) interface for most development work. This interface includes batch file command support, the automated running of EPD test files, and the scoring of the EPD test result files. This is the approach I recommend to others although it requires a bit more work up front.