pasky / pachi

A fairly strong Go/Baduk/Weiqi playing program
http://pachi.or.cz/
GNU General Public License v2.0
510 stars 116 forks source link

Winter goodies #96

Closed lemonsqueeze closed 5 years ago

lemonsqueeze commented 5 years ago

A lot of gtp cleanup this time, and some nice features too:

For territory scoring came across an old thread on computer go mailing list which was very insightful. Didn't think deriving territory scoring from playouts' area scoring could be so elegant. Still would need to handle eyes in seki for full japanese rules compliance but this is already really good. Pachi correctly passes when pass is the only move under japanese rules now.

For undo we just keep track for move history at the gtp level and reload board + engine when undo comes =)