Пример #1
0
def test_row_win_by_x():
    assert (tic_tac_toe_checker([["-", "x", "o"], ["x", "x", "x"],
                                 ["o", "o", "-"]]) == "x wins!")
Пример #2
0
def test_unfinished_with_no_winners():
    assert (tic_tac_toe_checker([["x", "x", "o"], ["-", "x", "-"],
                                 ["x", "o", "o"]]) == "unfinished")
Пример #3
0
def test_column_win_by_o():
    assert (tic_tac_toe_checker([["x", "x", "o"], ["-", "x", "o"],
                                 ["x", "o", "o"]]) == "o wins!")
Пример #4
0
def test_draw():
    assert (tic_tac_toe_checker([["x", "x", "o"], ["o", "x", "x"],
                                 ["x", "o", "o"]]) == "draw!")