convey high/low hints if present
This commit is contained in:
parent
de8796d415
commit
db23b11a98
@ -168,8 +168,9 @@ class AOCDay:
|
||||
"https://adventofcode.com/%d/day/%d#part2" % (self.year, self.day)
|
||||
)
|
||||
elif "That's not the right answer" in message:
|
||||
hilo = re.findall("was too (high|low)", message)
|
||||
answer_cache[str_day][str_part]["wrong"].append(answer)
|
||||
print("That's WRONG!")
|
||||
print("That's WRONG%s!" % (f" (too {hilo[0]})" if hilo else ""))
|
||||
elif "You gave an answer too recently" in message:
|
||||
# WAIT and retry
|
||||
wait_pattern = r"You have (?:(\d+)m )?(\d+)s left to wait"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user