def _iterPos(self):
        for i in range(self.size[0]):
            for j in range(self.size[1]):
                yield (i, j)
an iterator over all the positions of the board.
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/twoplayergames/gomoku.py/GomokuGame._iterPos