public class CountScore
extends java.lang.Object
Constructor and Description |
---|
CountScore() |
Modifier and Type | Method and Description |
---|---|
void |
begin(ConstBoard board,
ConstPointList deadStones)
Begin counting a score.
|
PointList |
changeStatus(GoPoint p)
Change the life and death status of a group of stones.
|
void |
compute()
Update score after changing the life-death status of stones.
|
GoColor |
getColor(GoPoint p)
Get the owner of a point.
|
Score |
getScore(Komi komi,
Score.ScoringMethod rules)
Get the score.
|
boolean |
isDead(GoPoint p)
Get the life-death status of a stone.
|
void |
setDead(GoPoint p,
boolean value)
Change the life-death status of a stone.
|
public void begin(ConstBoard board, ConstPointList deadStones)
board
- The board.deadStones
- Initial set of stones to be marked as dead.public PointList changeStatus(GoPoint p)
p
- Location of a stone.public void compute()
public GoColor getColor(GoPoint p)
p
- The point (empty or occupied)public boolean isDead(GoPoint p)
p
- The stone.public Score getScore(Komi komi, Score.ScoringMethod rules)
komi
- The komi.rules
- The scoring methodpublic void setDead(GoPoint p, boolean value)
p
- The stone.value
- true, if stone is dead, false if stone is alive.