Skip to content

Commit

Permalink
Switch to clue percentage match in options list
Browse files Browse the repository at this point in the history
  • Loading branch information
mfitz committed Jan 30, 2024
1 parent 423f599 commit 95efd13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actorle_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def get_matching_movies_for_actor(movie_clues, actor_id, performances_df, movies
print(actor_roles)
print("\nOptions\n----------------")
option_num = 1
for actor_id, count in most_likely_actors:
for actor_id, number_of_clue_matches in most_likely_actors:
actor_name = get_actor_name(actor_id, actor_names_df)
percent_likelihood = (count / total_count) * 100.0
print("{}) {} is {:.2f}% likely".format(option_num, actor_name, percent_likelihood))
percent_match = (number_of_clue_matches / len(puzzle_clues)) * 100.0
print("{}) {} is a {:.2f}% match".format(option_num, actor_name, percent_match))
option_num += 1

0 comments on commit 95efd13

Please sign in to comment.