conanbatt/OpenKaya — pull request #40 by aleskiii (2012-10-27 13:14:54+00:00)
Title: fix score estimator + add toggle territory feature

As always, see jgo_adaptor to have an example of use.

Some changes of the calling code are (optionally) required:
- use getBoardFinalKindAt instead of getBoardKindAt for final display
- optionnaly provide "isDead" info when calling toggleAt (see ScoreBoardJGOAdaptor.prototype.toggleAndEstimate for an example).

What's new:
- fixed bug of false territory inside dead group
- allow toggling territory (click several times to switch between Black -> Empty > White -> Empty -> Black). require to call getBoardFinalKindAt instead of getBoardKindAt.
- dead stones should have been clicked twice to get marked alive. now require only one click (if "isDead" info is passed to toggleAt)