tesuji.games.go.computer.tactics
Class Geta
java.lang.Object
|
+--tesuji.games.go.computer.tactics.Geta
- public class Geta
- extends java.lang.Object
Module for reading getas, also called 3-liberty problems
or loose-ladders.
This module works in close connection with the ladder module
to which it delegates a lot of the work. Therefore this
module can only be instantiated together with a ladder module.
Creation date: (17-May-01 11:30:46 PM)
Product: Tesuji Software Go Library.
Copyright (c) 2001 Tesuji Software B.V.
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, provided that the above
copyright notice(s) and this permission notice appear in all copies of
the Software and that both the above copyright notice(s) and this
permission notice appear in supporting documentation.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of a Tesuji Software
shall not be used in advertising or otherwise to promote the sale, use
or other dealings in this Software without prior written authorization
of Tesuji Software.
Constructor Summary |
Geta(Ladder ladder)
This module works in close connection with the ladder module
to which it delegates a lot of the work. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Geta
public Geta(Ladder ladder)
- This module works in close connection with the ladder module
to which it delegates a lot of the work. Therefore this
module can only be instantiated together with a ladder module.
addGameEventListener
public void addGameEventListener(GameEventListener l)
- Register an event listener. Any change of the board during
reading gets sent here which is good for debugging or for
flashing the ladders on the screen.
Creation date: (17-May-01 11:42:45 PM)
catchGeta
public int catchGeta(int xy)
- Try to catch a stone or chain in a geta. A geta is
defined as a chain with two or three liberties that
can be captured by filling it's liberties or by playing
a 'geta', a netting move nearby. The chain is considered
to have escaped when it makes four liberties, or three
liberties with the other player to move.
Possible values are CAN_CATCH, CANNOT_CATCH or CATCH_WITH_KO
Creation date: (17-May-01 11:52:00 PM)
catchGeta
public int catchGeta(int x,
int y)
- Try to catch a stone or chain in a geta. A geta is
defined as a chain with two or three liberties that
can be captured by filling its liberties or by playing
a 'geta', a netting move nearby. The chain is considered
to have escaped when it makes four liberties, or three
liberties with the other player to move.
Possible values are CAN_CATCH, CANNOT_CATCH or CATCH_WITH_KO
Creation date: (17-May-01 11:52:00 PM)
escapeGeta
public int escapeGeta(int xy)
- Try to escape from a geta.
Creation date: (17-May-01 11:57:14 PM)
escapeGeta
public int escapeGeta(int x,
int y)
- Try to escape from a geta.
Creation date: (17-May-01 11:57:14 PM)
getNrLadderMovesRead
public int getNrLadderMovesRead()
getNrMovesRead
public int getNrMovesRead()
removeGameEventListener
public void removeGameEventListener(GameEventListener l)
testGetas
public static void testGetas(GameEventListener l)