def make_board(state):
    """Make a TicTacToe board from the cells"""

    cells = [str(i) if c == '.' else c for i, c in enumerate(state, start=1)]
    sep = '-------------'
    tmpl = '| {} | {} | {} |'
    return '\n'.join([
        sep,
        tmpl.format(*cells[0:3]), sep,
        tmpl.format(*cells[3:6]), sep,
        tmpl.format(*cells[6:9]), sep
    ])