title: Python Connect four Diagonal Checking
body: <p>I'm having issue getting my code started. I have a Connect 4 project for my programming class and I'm having a really stupid issue. I don't understand the diagonal checking. He gave us an example but I honestly don't get it.</p>
  
  <pre><code>def CheckForWinner(board, playerName, playerChar):
  
  
  diagonal = board[2][0] + board[3][1] + board[4][2] + board[5][3]
  if playerChar * 4 in diagonal:
      return playerName
  </code></pre>
  
  <p>It is a 42 space board(7x6)</p>
  
  <pre><code> 1 2 3 4 5 6 7 
   _ _ _ _ _ _ _ 
  |_|_|_|_|_|_|_|
  |_|_|_|_|_|_|_|
  |_|_|_|_|_|_|_|
  |_|_|_|_|_|_|_|
  |_|_|_|_|_|_|_|
  |_|_|_|_|_|_|_|
  </code></pre>
  
  <p>I'm just having difficulties under standing what it is checking. I'm not asking for you to give me the code. Just an explanation please. :)</p>