org.moyoman.module.proverbs.igoproverbs
Class GoProverbs

java.lang.Object
  |
  +--org.moyoman.util.igo.IgoBase
        |
        +--org.moyoman.module.proverbs.igoproverbs.GoProverbs
All Implemented Interfaces:
Cloneable, Serializable

public class GoProverbs
extends IgoBase

This class is responsible for finding moves from the proverbs of GO. The following proverbs have been implemented:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.moyoman.util.igo.IgoBase
actCnt, AKI, boardSize, col, comStone, d1, d11, d111, d117, d118, d17, d18, d2, d22, d222, d225, d226, d25, d26, d3, d33, d333, d336, d338, d36, d38, d4, d44, d444, d445, d447, d45, d47, d5, d55, d555, d6, d66, d666, d7, d77, d777, d8, d88, d888, EDGE, EDGE_M, IRO_KEI, KURO, posLimit, posStart, SIRO, sizeBlk, sizeHan, sizeP1, tanMe, tanOp
 
Constructor Summary
GoProverbs()
          Constructor
GoProverbs(int size)
          Constructor
 
Method Summary
 void arrClone(Object obj)
          Clone arrays.
 Object clone()
          Get clone object.
 VecInt provCapAnsKei()
          Get moves from the proverb [Answer the capping play with a knight's move].
 VecInt provCenterOf3()
          Get moves from the proverb [Play at the centre of three stones].
 VecInt provExtCross()
          Get moves from the proverb [Crosscut then extend].
 VecInt provHaneEnd2()
          Get moves from the proverb [hane at the end of two stones].
 VecInt provHaneResAttach()
          Get moves from the proverb [respond to attachment with hane].
 VecInt provKeiAnsKosu()
          Get moves from the proverb [Answer keima with kosumi].
 VecInt provKeiTuki()
          Get moves from the proverb [Cutting right through a knight's move is very big].
 VecInt provResKata()
          Get moves from the proverb [never ignore a shoulder hit].
 void setBoardSizeProv(int size)
          Set the size of board and related variables.
 
Methods inherited from class org.moyoman.util.igo.IgoBase
absYokoTate, aki, aki, aki, aki, aki, aki, aki, aki4Slant4, ccTable, ccTable, clearColor, empty, empty4, empty8, igoPos, info, iro, iro4, iroSlant4, moyoX, moyoY, setBoardSize, setData
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoProverbs

public GoProverbs()
Constructor


GoProverbs

public GoProverbs(int size)
Constructor

Parameters:
size - Size of the board.
Method Detail

setBoardSizeProv

public void setBoardSizeProv(int size)
Set the size of board and related variables.

Parameters:
size - The size of the Board.

clone

public Object clone()
Get clone object.

Overrides:
clone in class IgoBase
Returns:
a IgoBase object of clone.

arrClone

public void arrClone(Object obj)
Clone arrays.

Overrides:
arrClone in class IgoBase

provHaneEnd2

public VecInt provHaneEnd2()
Get moves from the proverb [hane at the end of two stones].

Returns:
a vector that stored position of moves.

provHaneResAttach

public VecInt provHaneResAttach()
Get moves from the proverb [respond to attachment with hane].

Returns:
a vector that stored position of moves.

provResKata

public VecInt provResKata()
Get moves from the proverb [never ignore a shoulder hit].

Returns:
a vector that stored position of moves.

provKeiTuki

public VecInt provKeiTuki()
Get moves from the proverb [Cutting right through a knight's move is very big].

Returns:
a vector that stored position of moves.

provExtCross

public VecInt provExtCross()
Get moves from the proverb [Crosscut then extend].

Returns:
a vector that stored position of moves.

provCapAnsKei

public VecInt provCapAnsKei()
Get moves from the proverb [Answer the capping play with a knight's move].

Returns:
a vector that stored position of moves.

provKeiAnsKosu

public VecInt provKeiAnsKosu()
Get moves from the proverb [Answer keima with kosumi].

Returns:
a vector that stored position of moves.

provCenterOf3

public VecInt provCenterOf3()
Get moves from the proverb [Play at the centre of three stones].

Returns:
a vector that stored position of moves.