[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] gnubg defends poorly against outer primes
From: |
Jim Segrave |
Subject: |
Re: [Bug-gnubg] gnubg defends poorly against outer primes |
Date: |
Mon, 24 Nov 2003 18:07:43 +0100 |
User-agent: |
Mutt/1.4.1i |
On Mon 24 Nov 2003 (10:27 +0000), Joern Thyssen wrote:
> On Sun, Nov 23, 2003 at 08:01:24PM +0100, Misja Alma wrote
> >
> > As far as I can
> > see the only solution would be to implement an export to Snowie
> > format?
>
> It's probably not the only solution. Snowie support it's own extension
> to the .mat format, where illegal moves or incomplete games can be set
> up using a specialised string identical to the Snowie .txt position
> files.
do we have that documented? Is it similar to the one Oystein raised
last night? Because if it is, then exporting rollouts in that format
should be easy - the export of rollout .sgf files is pretty
straightforward - there are four functions in rollout.c:
system are lawfully available to users
authorised by Thus plc only and for authorised purposes only. If you
do not
have such authorisation, you must disconnect now or you could be
committing a
criminal offence.
If you are unsure as to whether you have such authorisation you do not
and you
must disconnect now. To report problems with the security of this
system or
to confirm or request authorisation please e-mail
<address@hidden>.
# exec bash
bash-2.05a# exim_messageids_fromhost medicol.demon.nl | tee /tmp/zoe
1AN9D2-0003zQ-00
1AN9A4-0003ej-00
1AN98D-0003PF-00
1AN92E-0002HK-00
1AN8zI-0001qg-00
1AN9JI-0004hj-00
1AN9FJ-0004Gf-00
1AN99Q-0003aD-00
1AN97R-0003Hy-00
1AN9KV-0004n5-00
1AN93X-0002Zh-00
1AN91Z-0002Bf-00
1AN9IZ-0004dh-00
1AN9Gc-0004Ot-00
1AN9Dk-00044N-00
1AN9Al-0003jD-00
1AN98m-0003Ty-00
1AN96n-0003E8-00
1AN8xq-0001Zi-00
1AN94q-0002wr-00
1AN92t-0002Rd-00
1AN9Fy-0004Kz-00
bash-2.05a# cat /tmp/zoe | xargs exim -Mf
Message 1AN9D2-0003zQ-00 is now frozen
Message 1AN9A4-0003ej-00 is now frozen
Message 1AN98D-0003PF-00 is now frozen
Message 1AN92E-0002HK-00 is now frozen
Message 1AN8zI-0001qg-00 is now frozen
Message 1AN9JI-0004hj-00 is now frozen
Message 1AN9FJ-0004Gf-00 is now frozen
Message 1AN99Q-0003aD-00 is now frozen
Message 1AN97R-0003Hy-00 is now frozen
Message 1AN9KV-0004n5-00 is now frozen
Message 1AN93X-0002Zh-00 is now frozen
Message 1AN91Z-0002Bf-00 is now frozen
Message 1AN9IZ-0004dh-00 is now frozen
Message 1AN9Gc-0004Ot-00 is now frozen
Message 1AN9Dk-00044N-00 is now frozen
Message 1AN9Al-0003jD-00 is now frozen
Message 1AN98m-0003Ty-00 is now frozen
Message 1AN96n-0003E8-00 is now frozen
Message 1AN8xq-0001Zi-00 is now frozen
Message 1AN94q-0002wr-00 is now frozen
Message 1AN92t-0002Rd-00 is now frozen
Message 1AN9Fy-0004Kz-00 is now frozen
bash-2.05a# (for i in `cat /tmp/zoe`; do exim -Mvh $i ; done) | grep
-i Subject: | less
034 SUBJECT: Mail: Returned To Sender
016 SUBJECT: Report
025 SUBJECT: Internet Update
031 SUBJECT: New Net Critical Pack
028 SUBJECT: Last Security Pack
045 SUBJECT: undeliverable message: user unknown
028 SUBJECT: Undeliverable Mail
010 SUBJECT:
029 SUBJECT: Net Security Update
020 SUBJECT: Bug Letter
034 SUBJECT: Latest Net Critical Pack
017 SUBJECT: Upgrade
016 SUBJECT: advice
024 SUBJECT: Failure Advice
022 SUBJECT: Error Notice
049 SUBJECT: undelivered message: returned to sender
dhcp_dbedit menu -- Editing MACs for DSL customers [v1.36]
Currently selected data is:
Account-name: dafrank.demon.nl [212.238.154.103]
Database has details for that account:
System Override: blocked: worm reports
dafrank.demon.nl 00:50:fc:22:bd:b8
Enter a MAC address, a systemname, or a /-command
"/help" for an explanation, "/quit" to quit.
The database is not updated until an /add or /delete command is
given.
/quit
File Edit Options Buffers Tools Help
On Mon 24 Nov 2003 (10:27 +0000), Joern Thyssen wrote:
> On Sun, Nov 23, 2003 at 08:01:24PM +0100, Misja Alma wrote
> >
> > As far as I can
> > see the only solution would be to implement an export to Snowie
> > format?
>
> It's probably not the only solution. Snowie support it's own
extension
> to the .mat format, where illegal moves or incomplete games can be
set
> up using a specialised string identical to the Snowie .txt position
> files.
do we have that documented? Is it similar to the one Oystein raised
last night? Because if it is, then exporting rollouts in that format
should be easy - the export of rollout .sgf files is pretty
straightforward - there are four functions in rollout.c:
void log_game_start (char *name, const cubeinfo *pci, int fCubeful,
int anBoard[2][25])
called with the file template (name), the cube and board at the
start of the rollout and a cubeful/not flag. This generates the
.sgf header but could generate the beginning of a .mat file with
the position setup.
void board_to_sgf (int anBoard[25], int direction)
The bit of log_game_start which generates the current position
void log_move (int *anMove, int player, int die0, int die1)
generates one player's move
void log_cube (char *action, int player)
generates one player's take/double/drop
I think with a clear spec of how the position is set up, the rest is
very easy to do.
What it looked like from Oystein's posted match:
There's a 32 field line. Each field is a number, negative numbers are
player 1. The first 6 fields are unknown in
use, but are probably cube and chequers off for each player. I think
(but haven't seen one yet) that field[6] is a count of chequers on the
bar for player 0 (0..15). fields 7..30 appear to be the points from
player 0's view (field[7] = player 0's ace point. The value is the
number of chequers on that point, negative if they are player
1's. Field[31] is the number of chequers on the bar for player 1 (0
.. -15)
So the starting position would be:
f 0..5 0 0 0 0 0 0 # all unknown at this time
6 0 # no player 0 off
7..12 -2 0 0 0 0 5 # player 0 home board
13..18 0 3 0 0 0 -5 # player 0 outer board
19..24 5 0 0 0 -3 0 # player 1 outer board
25..30 -5 0 0 0 0 2 # player 1 home board
31 0 # no players off
But in the file all one line:
0 0 0 0 0 0 0 -2 0 0 0 0 5 0 3 0 0 0 -5 5 0 0 0 -3 0 -5 0 0 0 0 2 0
All we need is to see how the beginning values look and check that
player 0 off is in field[6].
Arbitraty but recognisable chequer placements and the following:
a match to 9, score 6-5 cube on 2 owned by player 0, player 0 one man on bar.
a match to 7, score 4-3 cube on 4, owned by player 1, player 0 has 1 man off
a match to 5, score 2-1 cube centred, player 1 has 2 men off
a match to 3, Crawford-0
money game, Jacoby
money game, no Jacoby (if allowed)
> Unfortunately, gnubg can only import such .mat files, but not export
> them.
--
Jim Segrave address@hidden
Re: [Bug-gnubg] gnubg defends poorly against outer primes, Joern Thyssen, 2003/11/24
- Re: [Bug-gnubg] gnubg defends poorly against outer primes,
Jim Segrave <=