fix few small things

This commit is contained in:
relikd
2021-02-13 22:24:17 +01:00
parent e4b4ed4498
commit 8ae643126e
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ def break_cipher(fname, candidates, solver, key_fn):
outfmt = 'IoC: {}, interrupt: {}, count: {}, solver: {}'
for irp_count, score, irp, kl, skips in candidates:
stops, upto = db_i.consider(fname, irp, irp_count)
stops, upto = db_i.consider(fname, 28 - irp if INVERT else irp, irp_count)
print(outfmt.format(score, LP.RUNES[irp], len(stops), key_fn.__name__))
testcase = data[:upto]
for x in reversed(skips):