Beispiel #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]]
Beispiel #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]
Beispiel #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]]