ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tuning again
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Ed Schroder



Joined: 18 Aug 2011
Posts: 1615

PostPost subject: Tuning again    Posted: Tue Nov 01, 2011 10:20 am Reply to topic Reply with quote

Joona post [ http://74.220.23.57/forum/viewtopic.php?t=40662 ] brings back sweet memories.

For the use of self-play I at the time wrote a small util (see below) that emulates a match between 2 equal engines in order to find out how many games it would take before every try (round) would give a reliable result. I consider a reliable result in the range of 49.9 - 50.1%

After all 1% is 6-7 elo points.

Running the utility shows that 10,000 games so now and then still may produce a 49-51% result so one is still left with an 6-7 elo error margin.

Only after 100,000 games things become stable.

Since I don't have the hardware to play 100,000 games I limit myself to 4000. When it shows an improvement I run it again with a different database. Kind of verification process. Then I make a decision.

Thoughts ?

The C-code then with apologies for the "goto" use, I am raised with that.

Ed

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

Code:

#include <stdio.h>
#include <stdlib.h>

void main()            // emulate matches

{       int r,x,max,c; float win,loss,draw,f1,f2,f3,f4; char w[200]; int rnd,d,e;

        srand(rnd);

again:  printf("Number of Games "); gets(w); max=atoi(w);

loop:   x=0; win=0; loss=0; draw=0; printf("\n");

next:   if (x==max) goto einde;

        r=rand(); r=r&3; if (r==0) goto next;
        if (r==1) win++;
        if (r==2) loss++;
        if (r==3) draw++;
        x++; if (x==(max/4)) goto disp;
             if (x==(max/2)) goto disp;
             if (x==(max/4)+(max/2)) goto disp;
             if (x==max) goto disp;
        goto next;


disp:   f1=win+(draw/2); f2=loss+(draw/2); f4=x; f3=(f1*100)/f4; d=f1; e=f2;
        printf("%d-%d (%.1f%%)  ",d,e,f3);
        goto next;

einde:  c=getch(); if (c=='q') return;
        if (c=='a') { printf("\n\n"); goto again; }
        goto loop;

}

Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
Tuning again Ed Schroder Tue Nov 01, 2011 10:20 am
      Re: Tuning again Edmund Moshammer Tue Nov 01, 2011 11:42 am
            Re: Tuning again Ed Schroder Tue Nov 01, 2011 4:13 pm
                  Re: Tuning again Robert Hyatt Tue Nov 01, 2011 8:04 pm
      Re: Tuning again Joona Kiiski Tue Nov 01, 2011 4:20 pm
            Re: Tuning again Ed Schroder Tue Nov 01, 2011 6:11 pm
                  Re: Tuning again Joona Kiiski Tue Nov 01, 2011 7:25 pm
                  Re: Tuning again Marco Costalba Tue Nov 01, 2011 9:30 pm
                        Re: Tuning again Ed Schroder Tue Nov 01, 2011 11:55 pm
                              Re: Tuning again Marco Costalba Wed Nov 02, 2011 6:04 am
                                    Re: Tuning again Ed Schroder Wed Nov 02, 2011 12:29 pm
                                          Re: Tuning again Michael Hoffmann Wed Nov 02, 2011 1:00 pm
                                          Re: Tuning again Larry Kaufman Wed Nov 02, 2011 2:04 pm
                                          Re: Tuning again Miguel A. Ballicora Wed Nov 02, 2011 2:52 pm
                                                Re: Tuning again Larry Kaufman Wed Nov 02, 2011 3:59 pm
                                                      Re: Tuning again Sam Hamilton Wed Nov 02, 2011 5:18 pm
                                                      Re: Tuning again H.G.Muller Wed Nov 02, 2011 5:29 pm
                                                Re: Tuning again Ed Schroder Wed Nov 02, 2011 7:36 pm
                                                      Re: Tuning again H.G.Muller Wed Nov 02, 2011 8:56 pm
                                                      Re: Tuning again Sam Hamilton Wed Nov 02, 2011 10:45 pm
                                                Re: Tuning again Ricardo Barreira Thu Nov 03, 2011 1:23 pm
                                                      Re: Tuning again Robert Hyatt Thu Nov 03, 2011 7:11 pm
                                                            Re: Tuning again Ricardo Barreira Thu Nov 03, 2011 8:39 pm
                                                            Re: Tuning again H.G.Muller Thu Nov 03, 2011 9:43 pm
                                                                  Re: Tuning again Robert Hyatt Mon Nov 07, 2011 2:08 am
                                          Re: Tuning again H.G.Muller Wed Nov 02, 2011 5:24 pm
                                                Re: Tuning again Ed Schroder Thu Nov 03, 2011 9:16 am
                                                      Re: Tuning again Steve B Thu Nov 03, 2011 11:20 am
                                    Re: Tuning again Rein Halbersma Wed Nov 02, 2011 6:32 pm
                                          Re: Tuning again david nash Thu Nov 10, 2011 8:57 am
                              Re: Tuning again Vincent Diepeveen Sun Nov 06, 2011 3:50 pm
                                    Re: Tuning again Ed Schroder Mon Nov 07, 2011 11:27 am
                                          Re: Tuning again Vincent Diepeveen Thu Nov 10, 2011 4:28 pm
      Re: Tuning again Sergei S. Markoff Thu Nov 03, 2011 10:11 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads