title: Prolog: create a list of empty lists
body: <p>I'm working on creating a board used for the <a href="http://mathcs.pugetsound.edu/~tmullen/pages/bertspel/" rel="nofollow noreferrer">Bert Bos puzzle</a>, and I'm trying to represent the board as a list of lists. </p>
  
  <p>I need to create a list of empty lists ex <code>[ [], [] , [] , [] ]</code>  but the problem is I need the exact number of empty lists provided from the input. So for example if I give create_board(4,X), it should return <code>X= [ [], [], [], [] ]</code>.</p>
  
  <p>Here is what I have so far</p>
  
  <pre><code>generate_board(0, [[]]) :- ! 
  generate_board(N, [[] | T]) :-
    N =&lt; 12, N &gt;= 1,
    N is N-1.
    generate_board(N, T).
  </code></pre>