harbecke / HexHex

AlphaGo Zero adaptation for Hex
GNU General Public License v3.0
21 stars 4 forks source link

change logic for retrieving position data for gui #20

Closed harbecke closed 5 years ago

harbecke commented 5 years ago

I wouldn't introduce a legacy board tensor but rather have board provide a function get_owner(position) which knows about the roatation logic.

Originally posted by @PascalCremer in https://github.com/harbecke/hex/pull/18#issuecomment-514336177

harbecke commented 5 years ago

implemented with 49389576273bc45eae43087f268d0839862e6c2d. what doesn't work is the field_text after a switch move. it works in all subsequent moves.