Skip to content

Commit 57ec07c

Browse files
author
wrongu
committed
updated comment in get_capture_size
1 parent 76529f4 commit 57ec07c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AlphaGo/preprocessing/preprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ def get_capture_size(state, maximum=8):
7272
- illegal move locations are all-zero features
7373
"""
7474
planes = np.zeros((state.size, state.size, maximum))
75-
# check difference in size after doing each move
7675
for (x, y) in state.get_legal_moves():
76+
# multiple disconnected groups may be captured. hence we loop over
77+
# groups and count sizes if captured.
7778
n_captured = 0
7879
for neighbor_group in state.get_groups_around((x, y)):
7980
# if the neighboring group is opponent stones and they have

0 commit comments

Comments
 (0)