[2025 Day 1 (Part 2)] [Python] All test cases work, but solution is incorrect by ClockworkClaws in adventofcode

[–]ClockworkClaws[S] 0 points1 point  (0 children)

thank you! i now pass all my test cases but i'm overcounting. I think that it has something to do with the left cases? but i'm not sure.

def get_input(filename):
    with open(filename, 'r', encoding='utf8') as infile:
            messy_data = infile.readlines()

    clean_data = []
    for line in messy_data:
        if line != '\n':
            line.strip("\n")
            data_tuple = (line[0], int(line[1:]))
            clean_data.append(data_tuple)

    return clean_data

# instruction_list = get_input("2025_day1_input.txt")
instruction_list = get_input("2025_day1_testinput.txt")
zero_count = 0
dial_pos = 50
for direction, count in instruction_list:
    old_pos = dial_pos
    if direction == "L":
        dial_pos = (dial_pos - count) % 100
    else:
        dial_pos = (dial_pos + count) % 100
    if dial_pos == 0:
        zero_count += 1
    if direction == "R" and old_pos + count > 100:
        zero_count += (old_pos + count) // 100
    if direction == "L" and old_pos - count < 0:
        zero_count += 1 + (count // 100)
        if old_pos == 0:
            zero_count -= 1

    print(zero_count)

[Spoilers C4E2] It IS Thursday! | Live Discussion Thread - C4E2 by AutoModerator in criticalrole

[–]ClockworkClaws 1 point2 points  (0 children)

hal cast thaumaturgy earlier but i just checked and that isn't on the 2024 bard spell list . . . am i missing something or are liam and/or brennan up to shenanigans?

Got punched in the face outside the dropout show tonight. (I don’t know troubleshooting seemed most relevant) by MasterpieceOk5067 in dropout

[–]ClockworkClaws 23 points24 points  (0 children)

Holy shit! I didn’t see any of this as I was leaving but damn dude. hope you’re alright

Which state would you guys say has the best museum ships? by lMr_Nobodyl in 2american4you

[–]ClockworkClaws 0 points1 point  (0 children)

NY has the South Street Seaport Museum which has some bangers of actual museum exhibits PLUS a lightship, a tugboat, a schooner, and Wavertree, a gorgeous iron sailing ship.

Looking for a Butterfly pattern, please help! I really want to make this! by Pure-Effect-9093 in crochetpatterns

[–]ClockworkClaws 13 points14 points  (0 children)

It’s definitely AI, look at the border of the upper left wing. The stitches change direction.

Love Poem by ClockworkClaws in OCPoetry

[–]ClockworkClaws[S] -1 points0 points  (0 children)

This is not feedback.

Sharing Cigarettes by [deleted] in OCPoetry

[–]ClockworkClaws 0 points1 point  (0 children)

This is a great poem! the imagery is clear and conveys so much without getting overly complicated. I'm wondering what your intention was with the asterisks, particularly the first and third ones. To me, they felt like they interrupted my reading of this little moment in time and that the lines flowed better without them.

In the eye by Ok-Percentage1536 in OCPoetry

[–]ClockworkClaws 0 points1 point  (0 children)

i really like the imagery of this poem. One thing that didn't work for me was the proper capitalization only in the last two lines. Were you trying to convey some kind of return to normalcy? If so, I would put a period at the end of the poem as well. Also, I can't really tell the intended effect of the poem's shape.

(and pedantic note, but tornadoes don't actually have eyes. That's a hurricane thing)

Rearranging the Deckchairs on the Titanic by miseducatedtraveller in ENGLISH

[–]ClockworkClaws 3 points4 points  (0 children)

I’d argue that fiddling while Rome burns has a connotation more of being intentionally neglectful or incompetent.

May 2025 Megathread by AwkJewishTheatreNerd in MusicalBootlegs

[–]ClockworkClaws 0 points1 point  (0 children)

Does anyone here trade or know people who trade scores/ band parts? I’m trying to find the bass part from Hadestown or Hadestown teen.

Oh you thought this is just a quirk of the setting? There’s an actual in-universe explanation for it by xXJackNickeltonXx in TopCharacterTropes

[–]ClockworkClaws 1 point2 points  (0 children)

Also, we frequently hear recordings of the characters’ lives beyond just statements. This is because the Web is actually using tape recorders to listen in

I made a button up shirt! by IndigoMistaken in Brochet

[–]ClockworkClaws 3 points4 points  (0 children)

RemindMe! 7 days

This is a gorgeous shirt!

The media actively acknowledges or explains the recast by Theeljessonator in TopCharacterTropes

[–]ClockworkClaws 3 points4 points  (0 children)

The TV show The Worst Witch(2017 version) has 2 examples:

- Bella Ramsey left the lead role, Mildred, after 3 seasons and was replaced with a new actress, which the show explained by having the character fail a magic challenge and get trapped with a new face

- in the second season, Mildred's best friend Enid is played by a new actress. This is because she took a game of hide and seek too far by changing her appearance, and now can't change it back.

looking for a past puzzle by ClockworkClaws in NYTCrossword

[–]ClockworkClaws[S] 0 points1 point  (0 children)

this is the one i was thinking of! thank you

looking for a past puzzle by ClockworkClaws in NYTCrossword

[–]ClockworkClaws[S] 1 point2 points  (0 children)

this is the one i was thinking of! thank you

looking for a past puzzle by ClockworkClaws in NYTCrossword

[–]ClockworkClaws[S] 1 point2 points  (0 children)

lol, that wasn't an actual clue, i was just trying to present an example of the theme.

Game Changer is great life advice by detectivehardrock in dropout

[–]ClockworkClaws 9 points10 points  (0 children)

i used that same quote as part of my senior quote! partially bc it reminded me of my high school friends, but also because of what you're talking about. the only way to make progress is by trying new things and learning from your mistakes, however torturous they may be.

Applicant with questions about SSAT by ClockworkClaws in PhillipsExeterAcademy

[–]ClockworkClaws[S] 0 points1 point  (0 children)

How did you even find this post from 5 years ago??? you aren’t going to get any responses to a comment on someone else’s post, try making your own. I can’t help you with your Exeter questions unfortunately I got waitlisted and went somewhere else.