title: Fill entire 2D Array (Tetris board) with Tetris pieces, no spaces left over (Java)
body: <p>Let's say I have a 2D int array..</p>
  
  <pre><code>int[][] board = new int[10][20];
  
  public void initBoard()
  {
      for(int r = 0; r &lt; 10; r++)
          for(int c = 0; c &lt; 20; c++)
              board[r][c] = 0;
  }
  </code></pre>
  
  <p>0 means no piece
  The pieces are represented by 1-7;</p>
  
  <p>1 - Z Shape</p>
  
  <p>2 - S Shape</p>
  
  <p>3 - Line Shape</p>
  
  <p>4 - T Shape</p>
  
  <p>5 - Box Shape</p>
  
  <p>6 - L Shape</p>
  
  <p>7 - Backwards L Shape</p>
  
  <p>What is the best way to fill the entire array with random shapes and no spaces left over.</p>
  
  <p>Note: I have the game working, I'm just trying to adapt it to something different while still using the Tetris gameplay</p>