bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] report of bug


From: Jim Segrave
Subject: Re: [Bug-gnubg] report of bug
Date: Sat, 1 Dec 2007 13:45:59 +0100
User-agent: Mutt/1.5.16 (2007-06-09)

On Sat 01 Dec 2007 (09:01 +0100), Wojciech Zaremba wrote:
> Yes, I know, but I think that on the gnubg-cli options with ply doesn't
> work.

See below - it does work.

> 2007/11/30, Jim Segrave <address@hidden>:
> >
> > On Fri 30 Nov 2007 (15:32 +0100), Wojciech Zaremba wrote:
> > > In gnubg-cli doesn't work command "set player gnubg chequerplay
> > evaluation
> > > plies 4" and/or "set player gnubg cubedecision evaluation plies 4". When
> > I
> > > use that option in gnubg I must wait because computer compute. Using
> > gnubg
> > > from command line it's so fast like without that option (I'm also try to
> > use
> > > option "set player gnubg chequerplay evaluation plies 5" and I have this
> > > same effect in gnubg-cli). I played a lot with computer using command
> > line.
> > > It's the reason why I thought that computer isn't so good :).
> >
> > If you make the assumption that each ply will make the computer takes
> > perhaps 100 times as many evaluations as the previous ply, you can see
> > what's happening here (I think the multiplier may be nearer 200 to
> > 300.

I just ran a pair of tests using command files and gnubg in cli mode.

For the first test, I used an opening roll of 6-4, with a command
file:
================
set evaluation chequerplay evaluation plies 0
set evaluation cubedecision evaluation plies 0
set player 0 human
new match 7
set dice 6 4
clear hint 
hint
quit
y
===========
The set player human prevents gnubg from trying to play an initial
move. There were copies of this file with plies set between 0 and 4
inclusive. The 'clear hint' is essential, otherwise it uses the
evaluation settings for the player on roll.

Using a command:

for i in 4 3 2 1 0
do
time -p gnubg -t -c /tmp/pos$i > /tmp/hint$i
done

I got the time for each of the plies and a check that the hints were
done at the requested number of plies. The real time is wall clock
time and is heavily influenced by my laptop pausing when the CPU
temperature became too high (dual core CPU running with 2 gnu threads)

plies 4:
real 155.82
user 101.78
sys 0.07

plies 3:
real 10.46
user 8.49
sys 0.02

plies 2:
real 1.34
user 1.31
sys 0.02

plies 1:
real 0.17
user 0.15
sys 0.02

plies 0:
real 0.09
user 0.06
sys 0.02

Here 8 moves survive 2 ply evaluation and 2 make it to 3 and 4 ply.


I then tried a midgame arbitrary position:

set evaluation chequerplay evaluation plies 0
set evaluation cubedecision evaluation plies 0
set matchid QYn1AEAAIAAA
set board   2M7BAyDYzsEDIA
set player 0 human
set dice 43
clear hint
hint
quit
y

and got timings of:

plies: 4
real 89.09
user 88.94
sys 0.09

plies: 3
real 7.07
user 7.04
sys 0.02

plies: 2
real 52.17
user 1.10
sys 0.02

plies: 1
real 0.14
user 0.12
sys 0.02

plies: 0
real 0.08
user 0.06
sys 0.02

In this case 6 moves go to 2 ply evaluation, 2 continue on to 3 or 4
ply evaluation

-- 
Jim Segrave           address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]