mirror of
https://github.com/bvanroll/advent-of-code-2020.git
synced 2025-08-29 12:02:44 +00:00
lil late, because i was braindead yesterday. Code was correct, however
i had to better interpret my output. which would lead me to make a better print statement of the output
This commit is contained in:
@@ -19,6 +19,7 @@ for line in lines:
|
||||
row = b >> 3
|
||||
col = b & int("0000000111", 2) # idk if you can do this with bitshifting too, this felt kinda cheap
|
||||
score = row * 8 + col
|
||||
print(score)
|
||||
if score > lastScore:
|
||||
lastScore = score
|
||||
|
||||
|
Reference in New Issue
Block a user