We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76529f4 commit 57ec07cCopy full SHA for 57ec07c
AlphaGo/preprocessing/preprocessing.py
@@ -72,8 +72,9 @@ def get_capture_size(state, maximum=8):
72
- illegal move locations are all-zero features
73
"""
74
planes = np.zeros((state.size, state.size, maximum))
75
- # check difference in size after doing each move
76
for (x, y) in state.get_legal_moves():
+ # multiple disconnected groups may be captured. hence we loop over
77
+ # groups and count sizes if captured.
78
n_captured = 0
79
for neighbor_group in state.get_groups_around((x, y)):
80
# if the neighboring group is opponent stones and they have
0 commit comments