title: How would I search a single row in a numpy array to see if it has a specified value?
body: <p>I am programming a simple checkers game and to see if either side's pieces have reached the other side I want to check if the row has a specific value. Included are the pieces' definitions: 1 and 2 are pawns, 3 and 4 are kings, and 0 is a blank space.</p>
  <pre><code>positionOfCheckers = np.array([
      [0, 0, 0, 2, 0, 2, 0, 2],
      [2, 0, 1, 0, 2, 0, 2, 0],
      [0, 2, 0, 2, 0, 2, 0, 2],
      [0, 0, 0, 0, 0, 0, 0, 0],
      [0, 0, 0, 0, 0, 0, 0, 0],
      [1, 0, 1, 0, 1, 0, 1, 0],
      [0, 1, 0, 1, 0, 1, 0, 1],
      [1, 0, 1, 0, 1, 0, 1, 0]])
  
  pieceDict = {
    0:&quot;   &quot;,
    1:&quot; o &quot;,
    2:&quot; x &quot;,
    3:&quot; O &quot;,
    4:&quot; X &quot;
  }
  </code></pre>