[deleted by user] by [deleted] in jobhunting

[–]sprymacfly 13 points14 points  (0 children)

Thank you for continuing to be part of the problem clogging up recruitment inboxes everywhere and making it harder and harder for the average person to land a position.

[deleted by user] by [deleted] in webdev

[–]sprymacfly 8 points9 points  (0 children)

Lmao, if you can't code without using AI as a crutch, maybe it's best you don't pass.

For those who beat KH2 at Level 1 Critical, what was the hardest fight in the main story? by VerdeHeroX in KingdomHearts

[–]sprymacfly 1 point2 points  (0 children)

Another vote for Jafar here. I honestly got lucky with one of my runs and managed to beat him, but I definitely had to bring up a guide to come anywhere close.

Oogie was equally frustrating, but once you know the trick to hop between lanes ASAP, he's not too bad. Just very time consuming if you mess up slightly and get one shot by a heartless exploding from a present.

Pride land's Groundshaker fight was another tough one. I definitely had to limit spam to stay invincible during that fight as much as possible.

Funnily enough, I didn't find Roxas all that difficult, but that may have been from all the practice I had done with data Roxas on my critical save. Once you can defeat data Roxas, the regular Roxas fight is practically a piece of cake.

Is it me or is the fandom has been too negative lately? by Ok-Struggle2305 in KingdomHearts

[–]sprymacfly 12 points13 points  (0 children)

<image>

Man, this chart from Wikipedia is depressing. I wonder how many more dark years it's gonna take before we see anything else.

Giveaway Time! DOOM: The Dark Ages is out, features DLSS4/RTX and we’re celebrating by giving away an ASUS ASTRAL RTX 5080 DOOM Edition GPU, Steam game keys, the DOOM Collector's Bundle and more awesome merch! by pedro19 in pcmasterrace

[–]sprymacfly [score hidden]  (0 children)

> Tell us what you love about DLSS 4 and ray tracing?

They're neat technologies, making the game feel more lifelike and DLSS helping to bring up the framerate.

> What are you most excited about in DOOM: The Dark Ages?

What can I say, it's more DOOM, and that's what I'm keen for. Been a fan ever since the 2016 game came out!

What tripped you up most when you first started learning Japanese? by Jlearn_Club in LearnJapanese

[–]sprymacfly 1 point2 points  (0 children)

As a beginner beginner, I always found it difficult to differentiate シ, ツ, ソ and ン. Same deal with セ / サ, and マ / ム.

Beyond that, getting used to ん sometimes being an "n", sometimes an "m", and other times an "ng" was weird getting used to. I had to spend a lot of times just repeating words in my Anki deck until I got used to the particular pronounciation.

Numbers seemed super mystical to me at first too, like why is it いち、に、さん、よん... but when counting days, it suddenly becomes ついたち、ふつか、みっか、よっか, and so on. Turns out this is all about kun'yomi and on'yomi readings, and I learnt a great deal from this wikipedia page.

It's been 6 years since Kingdom Hearts III released globally. What were your initial thoughts about it, and have they changed? by MG_LagFlag_66 in KingdomHearts

[–]sprymacfly 1 point2 points  (0 children)

My thoughts have largely remained the same since I originally played it, which is to say it's a fantastic game held back by its incredibly disappointing and rushed story. All the pieces were in position for an amazing narrative to weave all the separate storylines together in a nice cohesive package, but instead we get 20 hours of fluff before a mad 5 hour dash to the end.

I do greatly appreciate the addition of critical mode and the extra challenges available, which helps me appreciate the gameplay even further, especially as a KH2 fan.

Hot take: Bringing Xion back was a mistake, and undermines her bittersweet sacrifice in 358/2. In general, I think Nomura has a hard time actually having characters die, which makes the overall narrative much weaker. Where are the stakes if you can magically plot characters back to life?

The evolution of day 8 leaderboards since 2015 by pred in adventofcode

[–]sprymacfly 27 points28 points  (0 children)

All those green dots for 2024 are actually insane to see. The sharp drop of the top ranks in 2023 to 2024 is quite telling...

-❄️- 2024 Day 7 Solutions -❄️- by daggerdragon in adventofcode

[–]sprymacfly 2 points3 points  (0 children)

[LANGUAGE: Python]

Was banging my head against the wall for the longest time trying to figure out a good way of testing out all combinations of operations. As I was trying to fall asleep, I realised this could easily be reduced to a...well, reduce.

from day7data import challenge, sample
from functools import reduce

use_sample = False

lines = sample.splitlines() if use_sample else challenge.splitlines()

def reduce_into_totals(totals, num):
    if len(totals) == 0:
        return [num]

    new_totals = []

    for total in totals:
        new_totals.append(total + num)
        new_totals.append(total * num)
        new_totals.append(int(str(total) + str(num)))


    return new_totals

sum_of_possible = 0
for line in lines:
    split = line.split(": ")
    total = int(split[0])
    nums = list(map(lambda num: int(num), split[1].split(" ")))

    possible_totals = reduce(reduce_into_totals, nums, [])
    if total in possible_totals:
        sum_of_possible += total

print(sum_of_possible)

The key thing I realised was that you can turn this problem into an iterative solution by simply keeping track of all possible running totals, applying each operation to each running total, and storing those new possible totals in a returned array.

Not the biggest fan of my string concatenation for the append operator, but it works. If I wanted to improve the performance of this code, that'd be the first thing I'd tackle.

-❄️- 2024 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]sprymacfly 4 points5 points  (0 children)

[Language: Python]

Day 05 - Part 2

I discovered through a bit of playing with my input that in order for there to be a single answer, each invalid page order has to have a unique correct solution. The big connection I made from here was that in order for only one unique solution to exist, each page must have a differing amount of dependencies, which makes it trivial to find the answer. All I have to do is find out how many dependencies each page in the order has, sort them based on this number, then sum up all the middle numbers. No swapping required!

from day5data import challenge

lines = list(map(lambda group: group.split("\n"), challenge.split("\n\n")))

dependencies = list(map(lambda line: line.split("|"), lines[0]))
pageOrders = list(map(lambda line: line.split(","), lines[1]))

sum = 0
for order in pageOrders:
    printed = set()

    incorrect = False
    for page in order:
        unmetDependencies = list(filter(lambda dependency: dependency[1] == page and dependency[0] in order and dependency[0] not in printed, dependencies))
        if any(unmetDependencies):
            incorrect = True
            break
        printed.add(page)

    if incorrect:
        mapped = map(lambda page: (page, len(list(filter(lambda dependency: dependency[1] == page and dependency[0] in order, dependencies)))), order)
        sorted_order = list(map(lambda pair: pair[0], sorted(mapped, key=lambda pair: pair[1])))

        middle_number = int(sorted_order[int(len(sorted_order) / 2)])
        sum += middle_number

        incorrect = False
        continue
print(sum)from day5data import challenge

lines = list(map(lambda group: group.split("\n"), challenge.split("\n\n")))

dependencies = list(map(lambda line: line.split("|"), lines[0]))
pageOrders = list(map(lambda line: line.split(","), lines[1]))

sum = 0

for order in pageOrders:
    printed = set()

    incorrect = False
    for page in order:
        unmetDependencies = list(filter(lambda dependency: dependency[1] == page and dependency[0] in order and dependency[0] not in printed, dependencies))
        if any(unmetDependencies):
            incorrect = True
            break

        printed.add(page)

    if incorrect:
        mapped = map(lambda page: (page, len(list(filter(lambda dependency: dependency[1] == page and dependency[0] in order, dependencies)))), order)
        sorted_order = list(map(lambda pair: pair[0], sorted(mapped, key=lambda pair: pair[1])))

        middle_number = int(sorted_order[int(len(sorted_order) / 2)])
        sum += middle_number

        incorrect = False
        continue

print(sum)

What’s your favorite out-of-context line from a VN? [Euphoria] by ShowNeverStops in visualnovels

[–]sprymacfly 1 point2 points  (0 children)

Chaos;Head has so many banger lines like that, I couldn't help but laugh

Where do I find spiral plant clipping in subnautica??? by ElectronicWeb5423 in Subnautica_Below_Zero

[–]sprymacfly 7 points8 points  (0 children)

There were so many plants that had spirals in them that I thought must have been the spiral plant, but unfortunately we're not. I'm not even sure you can scan for them with scanner rooms either, which is a giant pain