def _neighbors(self, pos):
        res = []
        if pos[1] < self.size - 1: res.append((pos[0], pos[1] + 1))
        if pos[1] > 0: res.append((pos[0], pos[1] - 1))
        if pos[0] < self.size - 1: res.append((pos[0] + 1, pos[1]))
        if pos[0] > 0: res.append((pos[0] - 1, pos[1]))
        return res
the 4 neighboring positions
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/twoplayergames/gomoku.py/GomokuGame._neighbors