Cheating At Rock, Paper, Scissors - Advent of Code 2022 Day 02

Attempting the 24 days of advent code this year - come along for the journey and learn some code! We'll be using Python for the initial algorithms, and if I have time I'll be redoing them in Rust (on my github profile, link below)
Get caught up on those socials to know when the next video drops:
/ discord (We have a Discord server now!)
/ retrofluxtweets (Every new video is posted here!)
/ retroflux_twitch (I stream sometimes too)
/ retroflux (We have a subreddit now!)
/ patreoflux (Only give what you can spare please!)

Пікірлер: 5

  • @jacknguyen5220
    @jacknguyen5220 Жыл бұрын

    bruh the speed at the top of the leaderboard is wild

  • @eliaspippenger5387

    @eliaspippenger5387

    Жыл бұрын

    Fr. I completed both parts of the 4th day 30 mins after it released, and I still was down at 7000th place.

  • @ChampionJan
    @ChampionJan Жыл бұрын

    Tbh my idea was very boring. There are only 9 scenarios and we know the point value we would gain in each scenario. I’d just have if statements (prolly nested if statements to make it efficient) that would return the point values we would get based on the scenario and sum them lol. Boring but I guess it works😂

  • @commandwolf713

    @commandwolf713

    Жыл бұрын

    I had the same idea! But I would probably use a dictionary instead. Like "A X" is always going to be 4, and so on. It's a direct translation. Another plus is that none of the code has to be changed except for the dictionary itself in part 2.

  • @ChampionJan

    @ChampionJan

    Жыл бұрын

    @@commandwolf713 I actually love your idea so much more. I think a dictionary would be simpler. Sometimes I forget those exist lol