def get_games_per_worker(games, max_workers):
    """Calculates the number of games each processor should play.

    Args:
        games (int): Total number of games to be played.
        max_workers (int): Number of processors that will play those games.

    Returns:
         list[int]: Number of games each processor should play. The list
            contains one element per processor.

    """
    d_games = games // max_workers
    r_games = games % max_workers
    n_games = [d_games] * max_workers
    if r_games != 0:
        for i in range(r_games):
            n_games[i] += 1
    return n_games