bug-gnubg
[Top][All Lists]
Advanced

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

Re: Have you ever seen anything like this?


From: Philippe Michel
Subject: Re: Have you ever seen anything like this?
Date: Sun, 5 May 2024 18:54:47 +0200

On Fri, May 03, 2024 at 04:21:51AM -0600, Murat K wrote:

> I just remembered that someone had asked not so long ago
> about the possibility of saving the moves during rollouts
> and I had inquired about why he was wanting to do that.
> 
> I searched the archives but couldn't find it. Maybe I was
> using the wrong keywords. Does anyone remember?
> 
> Now that we are talking about this, I think it would be a
> great unique feature for GnuBG to allow saving the moves
> in trials during rollouts. That way we can scan them for
> any berserk sequences of moves and other kinds of similar
> occurrences that we may be curious about.

It is possible to save every game played in a rollout, but the 
corresponding commands are only available from the CLI.

You would use something like:

set rollout logfile /tmp/test
set rollout log on

then start the rollout and the games would be saved in files named

test-0000000-a.sgf
test-0000000-b.sgf
test-0000001-a.sgf
etc...

0000000, 0000001, ... are the trial numbers and a, b, ... are the 
candidate moves (or no double and double if you roll out a cube 
decision).


To get a sample of game lengths I tried this with the rollout of a 21 
opening roll (1296 trials, 24/23 13/11 and 13/11 6/5 moves only)

Th distribution of game length is appended below. The longest one was 
156 moves (in total, 78 for each player) and was a 3-anchors backgame 
after a
21: 13/11 6/5 64: 24/20*/11*
start that was won by the backgame player. The containment play was 
probably far from perfect but not ridiculous. A pretty normal long game.

There are relatively many other long games, but after all in 1296 trials 
there will be 72 games starting with the above two rolls and already 4 
checkers back.

games  length
   6 5
  19 6
  28 7
  39 8
  49 9
  36 10
  44 11
  41 12
  42 13
  32 14
  36 15
  36 16
  40 17
  35 18
  41 19
  35 20
  33 21
  32 22
  25 23
  31 24
  32 25
  30 26
  26 27
  28 28
  23 29
  17 30
  26 31
  22 32
  29 33
  31 34
  13 35
  32 36
  40 37
  29 38
  42 39
  33 40
  37 41
  45 42
  64 43
  49 44
  42 45
  50 46
  71 47
  53 48
  59 49
  69 50
  64 51
  51 52
  51 53
  47 54
  40 55
  49 56
  43 57
  44 58
  42 59
  31 60
  22 61
  21 62
  30 63
  21 64
  15 65
  20 66
  24 67
  20 68
  13 69
  19 70
  14 71
   7 72
  11 73
  14 74
  23 75
  12 76
  15 77
  18 78
   4 79
   8 80
  10 81
   9 82
   9 83
   5 84
   6 85
   6 86
   5 87
   3 88
   3 89
   1 90
   5 91
   8 92
   2 93
   4 94
   3 95
   3 96
   2 98
   1 99
   3 100
   4 101
   3 102
   1 103
   1 104
   4 106
   4 107
   1 109
   1 110
   1 111
   2 114
   2 116
   2 118
   2 119
   1 123
   2 125
   1 127
   2 129
   1 130
   1 131
   1 132
   1 139
   1 156




reply via email to

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