Ategon

joined 2 years ago
MODERATOR OF
[โ€“] [email protected] 2 points 2 years ago

Started a bit late due to setting up the thread and monitoring the leaderboard to open it up but still got it decently quick for having barely touched rust

Probably able to get it down shorter so might revisit it

[โ€“] [email protected] 3 points 2 years ago (6 children)

[Rust] 11157/6740

use std::fs;

const m: [(&str, u32); 10] = [
    ("zero", 0),
    ("one", 1),
    ("two", 2),
    ("three", 3),
    ("four", 4),
    ("five", 5),
    ("six", 6),
    ("seven", 7),
    ("eight", 8),
    ("nine", 9)
];

fn main() {
    let s = fs::read_to_string("data/input.txt").unwrap();

    let mut u = 0;

    for l in s.lines() {
        let mut h = l.chars();
        let mut f = 0;
        let mut a = 0;

        for n in 0..l.len() {
            let u = h.next().unwrap();

            match u.is_numeric() {
                true => {
                    let v = u.to_digit(10).unwrap();
                    if f == 0 {
                        f = v;
                    }
                    a = v;
                },
                _ => {
                    for (t, v) in m {
                        if l[n..].starts_with(t) {
                            if f == 0 {
                                f = v;
                            }
                            a = v;
                        }
                    }
                },
            }
        }

        u += f * 10 + a;
    }

    println!("Sum: {}", u);
}

Link

[โ€“] [email protected] 19 points 2 years ago* (last edited 2 years ago) (1 children)

they start out easy and get harder as time goes on. Theyre intended for all levels due to that and theres two different difficulties per day (the harder one being unlocked when you do the easy one). Basically anyone can do day 1

Heres stats for how many people completed each day last year https://adventofcode.com/2022/stats

[โ€“] [email protected] 8 points 2 years ago* (last edited 2 years ago) (1 children)

Update: Ive make a new leaderboard with code 3316962-6587d422 that has a name that isnt just my username (for some reason AoC only lets the leaderboard be an account name) since theres not many people on it currently and so its easy to find when the events going on

If you joined the last one rejoin this new one

[โ€“] [email protected] 11 points 2 years ago* (last edited 2 years ago)

yep, you can do them anytime after theyre unlocked and you dont have to do all of them

[โ€“] [email protected] 3 points 2 years ago* (last edited 2 years ago)

mostly different forms of edm for the 5 tracks there

  • nichibotsu - edm, chiptune
  • ba-da-ba - electronic, hip-hop
  • re:run - speedrun (drum and bass)
  • bring the madness noisestorm remix - breakbeat, edm
  • apocalypse - edm, chiptune

the majority of things I listen to are indie game soundtracks

[โ€“] [email protected] 6 points 2 years ago* (last edited 2 years ago) (4 children)

Top artist: Toby Fox as is usual every year for me lol (Undertale/Deltarune developer)
Top song: Nichibotsu by EX-LYD

Top 5 of eachArtists

  1. Toby Fox
  2. 2 Mello
  3. Waterflame
  4. EX-LYD
  5. Danny Baranowsky

Songs

  1. Nichibotsu by EX-LYD
  2. Ba-Da-Ba by 2 Mello
  3. RE:RUN (Original Soundtrack) by Neo Nomen
  4. Bring the madness - Noisestorm Remix by Pegboard Nerds, Excision, Mayor Apeshit, Noisestorm
  5. Apocalypse by Thomas Happ (Axiom Verge)
[โ€“] [email protected] 1 points 2 years ago (1 children)

Each country has their own date they celebrate thanksgiving on. In Canadas case its early october since that lines up with the end of the harvest season and it avoids cold weather that usually arrives end of october/november. Just assumed you asked the question cause most peoples thanksgiving just happened

[โ€“] [email protected] 2 points 2 years ago (3 children)

I'm in canada so last week wasn't Thanksgiving for me, it was in October

But it was pretty good, visited some family in Toronto

[โ€“] [email protected] 3 points 2 years ago* (last edited 2 years ago)

Yeah crunch in gamedev tends to be pretty bad. (Although there's also fun crunch in gamejams I bring upon myself but thats less of a job)

The game industry in general is something I'm likely going to avoid for a primary job due to low pay and stress and just be something I do as a hobby. Been enjoying doing web dev in internships

[โ€“] [email protected] 1 points 2 years ago* (last edited 2 years ago)

The issue is theres a large amount of things admins can do and you might not want to let people in charge of doing one task have access to something else

E.g. you can have people only for application accepting and not let them edit the instance itself or communities, or only community management and can't do things like defederate from other instances

Its more complicated than just an admin role but it shouldn't matter for people other than admins that its a mechanic

Instances can make as many roles as they want so they can just have admin if they want though but this lets them make them as needed

[โ€“] [email protected] 2 points 2 years ago* (last edited 2 years ago)

yeah should hopefully calm down tomorrow now that the initial jump is done and since youre doing it relative to what the values used to be so the values themselves shouldnt matter

there might still be spikes from dead communities suddenly getting activity (since the increase from 0 is much larger those communities would go to the top of the list. Could artificially decrease large active user changes from the instance by taking the square root of the percent instead of the actual percent for percents above 100% (1) or something)

Taking into account votes is going to be how the active users is handled for any instances running pangora (lemmy fork)

Viewing the instance communities from another instance thats just using lemmy will show the old stats if needed though

14
Using Aseprite with Godot (gamefromscratch.com)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

Just wanted to make another quick post just in case someone missed the other one

The icon poll to determine the recommended icon style for the instance is going to end tonight in around 11 hours

You can see the original post here https://programming.dev/post/190520 and make sure to dm me with the options ranked based on your preference if you want to vote (you can click on my name and then you can send a message through lemmy using the send message button that shows up in my profile)

56
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

The jam is going to last for nine days and theme voting is currently open at https://strawpoll.com/polls/eNg69eDbWnA

If youre looking for a team you can use the #FediverseJam hashtag on mastodon or use the INAT community here on lemmy

You can find the jam here https://itch.io/jam/summer-fediverse-jam

 

Welcome to Feedback Friday! This is a day all about getting feedback on your projects.

Have a scene in your game that you want to know if it looks good? Have a mechanic prototype that you want tested? Want to know if your steam page is good? Or do you want feedback on some other part of your game? Feel free to post them below for others to give feedback!

 

Official mod support for dome keeper is out that will let you mod the game using gdscript

Theres a couple mods already out including a mod that adds a new keeper that I made

view more: โ€น prev next โ€บ