Something was missing in the last post. I should add the dead stones to a "dead stones counter", so I created 2 new private variables in board.
Everytime a group is killed, I have to add all those stones to one of the counters. Now the killing method of the board will be something like this:
No comments:
Post a Comment