示例#1
0
def test_4():
    b = [ ["X"] * 4 ] * 3
    assert did_I_win_2D("X", b) == False
示例#2
0
def test_10():
    b = [ ["X"] * 10 ] * 10
    assert did_I_win_2D("X", b) == False
示例#3
0
def test_1():
    b = [["X"]] * 3
    assert did_I_win_2D("X", b) == False
示例#4
0
def test_2():
    b = [ ["X"] * 3 ] * 2
    assert did_I_win_2D("X", b) == False
示例#5
0
def test_3_3_O():
    b = [ ["X"] * 3 ] * 3
    assert did_I_win_2D("O", b) == False
示例#6
0
def test_0():
    b = []
    assert did_I_win_2D("X", b) == False
示例#7
0
def test_3_a3_X():
    b = [["O"] * 3, ["O"] * 3, ['X'] * 3]
    assert did_I_win_2D("X", b) == True
示例#8
0
def test_3_1d_O():
    b = [["O", "X", "O"]] * 3
    assert did_I_win_2D("X", b) == True
示例#9
0
def test_1_d_O():
    b = [['O', 'O', 'X'], ['O', 'X', 'O'], ['X', 'O', 'O']]
    assert did_I_win_2D("O", b) == False
示例#10
0
def test_3_d_X():
    b = [['X', 'O', 'O'], ['O', 'X', 'O'], ['O', 'O', 'X']]
    assert did_I_win_2D("X", b) == True
示例#11
0
def test_1_O_O():
    b = [["X", "O", "X"], ["O"] * 3, ["O", "X", "O"]]
    assert did_I_win_2D("O", b) == True
示例#12
0
def test_1_O_X():
    b = [["X", "O", "X"], ["O"] * 3, ["O", "X", "O"]]
    assert did_I_win_2D("X", b) == False
示例#13
0
def test_3_3_X():
    b = [ ["X"] * 3 ] * 3
    assert did_I_win_2D("X", b) == True
示例#14
0
def test_1_2_V():
    b = [["X", "X", "X"]] * 3
    assert did_I_win_2D("V", b) == False
示例#15
0
def test_1_2_O():
    b = [["X", "O", "O"]] * 3
    assert did_I_win_2D("O", b) == True