def fictive_player(player_1, player_2):
    """Create fictive player for elo computation."""
    if player_2 is None:
        elo = player_1.ranking
        number_match = player_1.number_of_match
    else:
        elo = (player_1.ranking + player_2.ranking) / 2
        number_match = (
            player_1.number_of_match +
            player_2.number_of_match) / 2
    return elo, number_match