コード例 #1
0
ファイル: ai_v2_test.py プロジェクト: danmedani/tactoe
def test_score_count_cpu_up_four():
    assert score_count((4, 0), 0) == 10**20
コード例 #2
0
ファイル: ai_v2_test.py プロジェクト: danmedani/tactoe
def test_score_count_cpu_up_four_other():
    assert score_count((4, 0), 1) == -10**20
コード例 #3
0
ファイル: ai_v2_test.py プロジェクト: danmedani/tactoe
def test_score_count_cpu_up_three():
    assert score_count((3, 0), 0) == 9
コード例 #4
0
ファイル: ai_v2_test.py プロジェクト: danmedani/tactoe
def test_score_count_cpu_up_two():
    assert score_count((2, 0), 0) == 4
コード例 #5
0
ファイル: ai_v2_test.py プロジェクト: danmedani/tactoe
def test_score_count_cpu_up():
    assert score_count((2, 0), 1) == -4
コード例 #6
0
ファイル: ai_v2_test.py プロジェクト: danmedani/tactoe
def test_score_count_same_2():
    assert score_count((2, 2), 1) == 0
コード例 #7
0
ファイル: ai_v2_test.py プロジェクト: danmedani/tactoe
def test_score_count_same():
    assert score_count((1, 1), 0) == 0