How to determine NPS

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
hgm
Posts: 28433
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to determine NPS

Post by hgm »

Cardoso wrote:How about counting only at a single place: MakeMove() ?

Alvaro
You would not count the root, so you would be one off... :lol:

I guess some people have a different MakeMove for null moves, that could also be a reason.
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: How to determine NPS

Post by michiguel »

Cardoso wrote:How about counting only at a single place: MakeMove() ?

Alvaro
That is what I have been doing. However, I am changing it. If you do not care to count as nodes every time you make a move to test its legality, this may be very simple. However, I was doing makemoves-- every time time a move was rejected. I found that spread all over my code (for instance, when I test SAN moves etc). Now I do this:

Code: Select all

loop moves {

    if (!makemove_verify(move)) {
        continue; /* move rejected*/
    }
    makemoves++;

    search ();

    etc.

}

It is obvious that is very similar to increase a counter at the beginning of search.
Miguel
User avatar
hgm
Posts: 28433
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to determine NPS

Post by hgm »

Could you fix your avatar so that I don't get a popup asking me if I want to see pages over a secure connection, each time I open a thread you posted in?
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: How to determine NPS

Post by michiguel »

hgm wrote:Could you fix your avatar so that I don't get a popup asking me if I want to see pages over a secure connection, each time I open a thread you posted in?
I cannot see why this may cause a problem. It links to a university website.
Do you have the same problem when you try to access here?

https://www.msu.edu/~ballicor/gav/

I removed my image temporarily so you can test if that was a problem.

Miguel
wgarvin
Posts: 838
Joined: Thu Jul 05, 2007 5:03 pm
Location: British Columbia, Canada

Re: How to determine NPS

Post by wgarvin »

michiguel wrote:
hgm wrote:Could you fix your avatar so that I don't get a popup asking me if I want to see pages over a secure connection, each time I open a thread you posted in?
I cannot see why this may cause a problem. It links to a university website.
Do you have the same problem when you try to access here?

https://www.msu.edu/~ballicor/gav/

I removed my image temporarily so you can test if that was a problem.

Miguel
It's the "https:" in the link, that causes the popup hgm doesn't like. "https:" means a "secure" connection over SSH, instead of a regular HTTP connection. His browser is trying to warn him because the page contains a mix of "secure" and "non-secure" things, which might be dangerous if the page was a credit card order form and he thought the whole thing was secured, but some important part of it was not. (Obviously in this case it doesn't matter -- in this case the warning is not useful, but he can't get rid of it without disabling it completely in his browser's settings.)

If your university page won't allow "http:" links, maybe you could try uploading the avatar image to some free image hosting place and link to that?
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: How to determine NPS

Post by michiguel »

wgarvin wrote:
michiguel wrote:
hgm wrote:Could you fix your avatar so that I don't get a popup asking me if I want to see pages over a secure connection, each time I open a thread you posted in?
I cannot see why this may cause a problem. It links to a university website.
Do you have the same problem when you try to access here?

https://www.msu.edu/~ballicor/gav/

I removed my image temporarily so you can test if that was a problem.

Miguel
It's the "https:" in the link, that causes the popup hgm doesn't like. "https:" means a "secure" connection over SSH, instead of a regular HTTP connection. His browser is trying to warn him because the page contains a mix of "secure" and "non-secure" things, which might be dangerous if the page was a credit card order form and he thought the whole thing was secured, but some important part of it was not. (Obviously in this case it doesn't matter -- in this case the warning is not useful, but he can't get rid of it without disabling it completely in his browser's settings.)

If your university page won't allow "http:" links, maybe you could try uploading the avatar image to some free image hosting place and link to that?
Thanks!
http works as well. I did not even realized it had https in the URL. I typed the URL with http, and once i got there to confirm it, I copied the link. By then, it redirected me to an https URL. Let's see if now it's fixed. Otherwise, I will move the image somewhere else.

Miguel
User avatar
hgm
Posts: 28433
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to determine NPS

Post by hgm »

The problem is not fixed. I guess the redirect is automatic, as I don't see the https: in the URL when I right-click your avatar and ask for properties.
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: How to determine NPS

Post by michiguel »

hgm wrote:The problem is not fixed. I guess the redirect is automatic, as I don't see the https: in the URL when I right-click your avatar and ask for properties.
Ok, I removed it. I will put the image somewhere else.

Miguel
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: How to determine NPS

Post by michiguel »

michiguel wrote:
hgm wrote:The problem is not fixed. I guess the redirect is automatic, as I don't see the https: in the URL when I right-click your avatar and ask for properties.
Ok, I removed it. I will put the image somewhere else.

Miguel
It is in a google site. It should be ok now, I think.

Miguel
User avatar
hgm
Posts: 28433
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to determine NPS

Post by hgm »

Yes, it is OK now. Thanks.