Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.

Conversation

@amj
Copy link
Contributor

@amj amj commented Jul 3, 2019

Quick recap: as we walk the AST, we transform it into Sgf::Node with our own Move structs, etc.
This CL changes "GetTreeImpl" to look for a HA property, and if so, it adds Nodes for black to play handicap stones and white to pass.

The resulting tree of nodes is handled as before: the engine calls PlayMove on each.

@brilee
Copy link
Contributor

brilee commented Jul 3, 2019

see warnings in docstring:
https://github.com/brilee/MuGo/blob/master/sgf_wrapper.py#L5

@amj
Copy link
Contributor Author

amj commented Jul 3, 2019

@brilee right now, our sgf parser literally ignores any SGF property on a node that isn't B[] or W[]. the HA property requires that another property be set on the node ('AB') specifying the actual location of the handicap stones.

So yeah your warning in the docstring is understood :) This PR doesn't add support for positions with existing stones, it just adjusts the semantics of our translation from "SGF Tree" => "Minigo Tree"

@amj
Copy link
Contributor Author

amj commented Jul 3, 2019

fixes #845

Copy link
Contributor

@tommadams tommadams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing my deficiencies!

@amj amj merged commit 2a4fe41 into tensorflow:master Jul 3, 2019
@amj amj deleted the handicap branch July 3, 2019 19:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants