class_docstr: Connect4 Board.
docstr: Checks if player_pieces contains a vertical or horizontal win.
docstr_tok: ["Checks","if","player_pieces","contains","a","vertical","or","horizontal","win","."]
code: def _is_straight_winner(self, player_pieces):
      """Checks if player_pieces contains a vertical or horizontal win."""
      run_lengths = [
          player_pieces[:, i : i + self.win_length].sum(axis=1)
          for i in range(len(player_pieces) - self.win_length + 2)
      ]
      return max([x.max() for x in run_lengths]) >= self.win_length
  
imports: import numpy
  from collections import namedtuple
label_desc: Use image node_id 8 for calling the Board obj's underlying member method code with example usage: obj._is_straight_winner(player_pieces) and returns: unknown