[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] snapback, connect.tst 23, 39
From: |
Gunnar Farneback |
Subject: |
Re: [gnugo-devel] snapback, connect.tst 23, 39 |
Date: |
Wed, 14 Nov 2001 20:35:19 +0100 |
User-agent: |
EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode) |
Teun wrote:
> It looks to me it is more logical
> to put the snapback function from readconnect.c
> in board.c since it is potentially useful elsewhere too.
No, it has nothing to do in board.c. It has passed the boundary
between basic board manipulation and tactical reading. Should it be
moved anywhere it would be to reading.c, but there we already have
functionality to do this. To be more precise, if you want to do
snapback(str) you should instead do attack(str, NULL) and reverse the
result.
There is one exception to this rule and that is that it's not clear
whether GNU Go's tactical reading will work together with Tristan's
connection reader in readconnect.c. That's why there's a snapback()
function there.
/Gunnar
- [gnugo-devel] snapback, connect.tst 23, 39, Teun Burgers, 2001/11/14
- Re: [gnugo-devel] snapback, connect.tst 23, 39,
Gunnar Farneback <=
- Re: [gnugo-devel] snapback, connect.tst 23, 39, Teun Burgers, 2001/11/14
- Re: [gnugo-devel] snapback, connect.tst 23, 39, Daniel Bump, 2001/11/14
- Re: [gnugo-devel] snapback, connect.tst 23, 39, Gunnar Farneback, 2001/11/14
- Re: [gnugo-devel] snapback, connect.tst 23, 39, Daniel Bump, 2001/11/14