docs: def print_square(row_queue, t):
      """
      Prints a row queue as its conceptual square array.
      """
      occupied_rows = {y: row for _, y, row in row_queue}
  
      empty_row = ', '.join('...' for _ in range(t))
      for y in range(t):
          print('|', end=' ')
          if y not in occupied_rows:
              print(empty_row, end=' ')
          else:
              row = dict(occupied_rows[y])
              all_cols = ('%3d' % row[x] if x in row else '...'
                          for x in range(t))
              print(', '.join(all_cols), end=' ')
  
          print("|")