title: How to get the row size and the column of an array in common lisp?
body: <p>I'm trying to create a simple chess engine in lisp for fun in my free  time. This is my design.</p>
  
  <pre><code>57 58 59 60 61 62 63 64
  49 50 51 52 53 54 55 56
  41 42 43 44 45 46 47 48
  33 34 35 36 37 38 39 40
  25 26 27 28 29 30 31 32
  17 18 19 20 21 22 23 24
  09 10 11 12 13 14 15 16
  01 02 03 04 05 06 07 08
  </code></pre>
  
  <p>I looked at more  complicated solutions but i came out with what i believe is the simplest one. Say the bishop is on the square 23, it could move 4 possible moves, (to  16 or 14 or 32 or 30), so  it moves -7 or +7 or +9 or -9.</p>
  
  <p>I create an array</p>
  
  <pre><code>(make-array '(8 8)
              :initial-contents
              '((R B N Q K B N R)
                (P P P P P P P P)
                (NIL NIL NIL NIL NIL NIL NIL NIL)
                (NIL NIL NIL NIL NIL NIL NIL NIL)
                (NIL NIL NIL NIL NIL NIL NIL NIL)
                (NIL NIL NIL NIL NIL NIL NIL NIL)
                (P P P P P P P P)
                (R B N Q K B N R)))
  </code></pre>
  
  <p>And move the pieces from index to index. But i need to get the row size and the column size to do <code>for bishop &gt;= row &amp;&amp; array size, move to x</code> if you know what i mean.</p>