コード例 #1
0
    def test_victory_3(self):

        file = "board_3"
        board = ConnectFourTest.read_board(file)

        player = [0, 1]

        win = ConnectFour.victory(board, player)

        expected_outcome = 1

        self.assertEqual(win, expected_outcome)
コード例 #2
0
def step_the_board_is_initialized(context):

    board = ConnectFour().player_turn()

    return board