コード例 #1
0
def test_win_by_column_returns_possible_column_wins():
    win_config = WinningCombos(3)
    win_config.win_by_column(win_config.win_by_row()) == [[0, 3, 6], [1, 4, 7],
                                                          [2, 5, 8]]
コード例 #2
0
def test_win_by_column_returns_possible_RTL_diagonal_win():
    win_config = WinningCombos(3)
    win_config.diagonal_right_to_left_win(win_config.win_by_row()) == [2, 4, 6]
コード例 #3
0
def test_win_by_row_returns_possible_row_wins():
    win_config = WinningCombos(3)
    win_config.win_by_row() == [[0, 1, 2], [3, 4, 5], [6, 7, 8]]