import numpy as np


def parse_board(board):
    rows = board.split('\n')
    mat = []
    for row in rows:
        if not row:
            continue
        row = list(row)
        mat.append(row)
    return np.matrix(mat)

958d6d4de706f3b56abda6b7b2ffca05dc888470
<mask token>

<mask token>


def parse_board(board):
    rows = board.split('\n')
    mat = []
    for row in rows:
        if not row:
            continue
        row = list(row)
        mat.append(row)
    return np.matrix(mat)

import numpy as np


def parse_board(board):
    rows = board.split('\n')
    mat = []
    for row in rows:
        if not row:
            continue
        row = list(row)
        mat.append(row)
    return np.matrix(mat)
