How to define a row and a column on N-queen program?
<p>I have to write a code for the N-queen chess board problem. I understand the theory behind it but dont understand how I should code it. In this exercise 0's represent spaces, and 1's represent queens)</p>

<p>so far I have only written:</p>

<pre><code>import numpy as np
board=np.zeros((8,8))
board[0:,0]=1
</code></pre>

<p>Following this, I want to define what the rows in this board are and what the columns in this board are. So I am able to define collisions between the queens on the board.</p>

<p>Thank you.</p>