Skip to content

Commit

Permalink
Merge pull request #4 from sealldeveloper/dev
Browse files Browse the repository at this point in the history
modify to use only shorter characters for now to reduce calculation time
  • Loading branch information
sealldeveloper authored Oct 16, 2024
2 parents 6ff9b20 + f27e12d commit 98342eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion find-num.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def find_shortest_combination(target, codes, max_length=3):
try:
code = process_code(code)
ascii_value = eval(code) # Assuming each code evaluates to its ASCII value
ascii_values[code] = ascii_value
if ascii_value <= 126 or len(code) < 35:
ascii_values[code] = ascii_value
# print(f"Code: {code}, ASCII Value: {ascii_value}") # Debug print
except Exception as e:
print(f"Error evaluating code '{code}': {e}") # Debug print
Expand Down

0 comments on commit 98342eb

Please sign in to comment.