title: Making a 2 by 2 board centered
body: <p>Say I have a list:</p>
  
  <p><code>nlist = [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0]</code></p>
  
  <p>And I have some code:</p>
  
  <pre><code>def drawBoard():
      count = 0
      for i in range(16):
          print('|',nlist[i], end = ' ')
          count += 1
          if count == 4:
              print("|\n-----------------")
              count = 0
      print("")
  </code></pre>
  
  <p>And this code displays the list like this:</p>
  
  <pre><code>| 0 | 0 | 0 | 0 |
  -----------------
  | 0 | 0 | 0 | 0 |
  -----------------
  | 0 | 0 | 0 | 0 |
  -----------------
  | 0 | 0 | 0 | 0 |
  -----------------
  </code></pre>
  
  <p>Right now the board looks fine but say I had a value like 128 instead of 1 of the zeros. That would unalign the board and make it look a little messy but when I get a whole bunch of numbers the board will just look plain out messy like this: </p>
  
  <pre><code>| 128 | 0 | 4096 | 0 |
  -----------------
  | 64 | 0 | 0 | 128 |
  -----------------
  | 2048 | 0 | 0 | 8192 |
  -----------------
  | 0 | 0 | 64 | 0 |
  -----------------
  </code></pre>
  
  <p>And now the board looks messed up and my lines under each number don't reach the end. How can I make the board look something like this(maybe change up the spacing between the straight lines) so that it doesn't look messy anymore:</p>
  
  <pre><code>| 128  | 0 | 4096 |   0  |
  --------------------------
  |  64  | 0 |  0   | 128  |
  --------------------------
  | 2048 | 0 |   0  | 4096 |
  --------------------------
  |  0   | 0 |  64  |  0   |
  --------------------------
  </code></pre>