Functions | |
| void | FindInfluence (const GoBoard &board, int nuExpand, int nuShrink, SgBWSet *result) |
| Compute influence by nuExpand expansions followed by nuShrink contractions. | |
| int | Influence (const GoBoard &board, SgBlackWhite color, int nuExpand, int nuShrink) |
| Influence of a single player. | |
| void | ComputeInfluence (const GoBoard &board, const SgBWSet &stopPts, SgBWArray< SgPointArray< int > > *influence) |
| Compute influence, stopping at stopPts. | |
| void GoInfluence::ComputeInfluence | ( | const GoBoard & | board, | |
| const SgBWSet & | stopPts, | |||
| SgBWArray< SgPointArray< int > > * | influence | |||
| ) |
Compute influence, stopping at stopPts.
Definition at line 70 of file GoInfluence.cpp.
References GoBoard::IsColor().
| void GoInfluence::FindInfluence | ( | const GoBoard & | board, | |
| int | nuExpand, | |||
| int | nuShrink, | |||
| SgBWSet * | result | |||
| ) |
Compute influence by nuExpand expansions followed by nuShrink contractions.
Starts from the player's stones. Expand: add the neighbor points Shrink: take away the points on the border of the set
Definition at line 31 of file GoInfluence.cpp.
References GoBoard::All(), SG_BLACK, SG_WHITE, SgOppBW(), and GoBoard::Size().
Referenced by Influence().
| int GoInfluence::Influence | ( | const GoBoard & | board, | |
| SgBlackWhite | color, | |||
| int | nuExpand, | |||
| int | nuShrink | |||
| ) |
Influence of a single player.
Definition at line 59 of file GoInfluence.cpp.
References FindInfluence().