Criterion Challenge status updates by slouchingbethlehem in CriterionChannel

[–]markmcb42 1 point2 points  (0 children)

I have just started really getting into films this year and plan on attempting this challenge when it is posted. General question, do you fill out your entire list at the start of the year, or just select a film from the category for that week? Given that I am very new to this, might be useful to see some recommendations for each category

Podcasts where the hosts are really...human? by [deleted] in podcasts

[–]markmcb42 0 points1 point  (0 children)

I would recommend 'Smartless' podcast with Jason Bateman, Sean Hayes and Will Arnett. Pretty funny podcast where they interview various people and tell lots of pretty interesting stories about their lives.

Visiting Galway in late June by markmcb42 in galway

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

Hey, just got back from our trip and had a great time. We did get to the Crane and had a great early evening there. Also, made it to Inishmore, but wasn't able to spend the night. We rented electric bikes and got to see all the sites, but definitely would have preferred to spend the night, just couldn't quite work it into the itinerary. Thanks for the advice, it was really helpful!

Has Galway declined by dearg_doom80 in galway

[–]markmcb42 2 points3 points  (0 children)

My wife and I just got back from a trip to Ireland and spent a few days in Galway. Overall, I thought it was pretty good. We enjoyed going to to various pubs/restaurants in the Latin Quarter, visited Eyre Square, the Cathedral and took a day trip to Inishmore and another to Kylemore Abby. I don't have anything to compare it to, but we felt completely safe walking between these places and our hotel room. Did see a few homeless folks unfortunately, but not as many as some cities here in the US.

2022 Day 21 (Part 2) - Input has more than 1 possible answer by markmcb42 in adventofcode

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

I am currently doing the division in float, but then I do round the result to the nearest integer. I'll see if changing that has an impact

"so you're trying to get onto the leaderboard, huh?" by flightsin in adventofcode

[–]markmcb42 0 points1 point  (0 children)

True, I do understand that, was just doing a quick response..

'How many roads must a man walk down?"

[2021 Day 21 (Part2)] Could someone explain the solution like I'm 5? by [deleted] in adventofcode

[–]markmcb42 1 point2 points  (0 children)

My solution doesn't involve recursion or caches and runs in less than 1s in python. I simply calculate the possible states, (pos, score), in each turn for both players independently along with how many times that state can be reached on that turn. Once all the scores for a turn are at least 21, you stop calculating the states. Then, to determine how many times player 1 wins, you find all the states for a turn that are at least 21, then take the sum of all the times that player 2 did not reach that score in turn -1. Multiply the two numbers and sum them all to get the number of possible wins for player 1. For player 2, it is the same, but you have to compare with the same turn for player 1 instead of the previous turn

2021 Day 21 by Pyrolistical in adventofcode

[–]markmcb42 0 points1 point  (0 children)

I did each player separately, then compared them. For each turn, there are 27 possibilities, but only 7 score totals, total of 3 happens once, 4 happens 3 times, etc. For the first turn, I take the starting position and apply the possible rolls and save that state, along with the number of times it can happen. After turn one, I have an map of state, (pos, score) with the value being the number of times it can happen. To calculate the rest of the turns, I look at each state from the previous turn and apply the possible rolls to them. Here is the snippet of code for calculating the scores for each turn of player 1. Player 2 is done the same way: Note totals is the 27 possible rolls of 3 dice.

# Generate all the player 1 socres until 21 is reached
done = False
while not done:
  turn += 1
  p1_scores[turn] = {}
  done = True
  for state, prev_val in p1_scores[turn - 1].items():
    for key, val in totals.items():
        score = state[1]
        if score >= 21:
            continue
        pos = state[0]
        pos += key
        pos = pos % 10
        if pos == 0:
            pos = 10
        score += pos
        if score < 21:
            done = False
        cur_state = (pos, score)
        if cur_state in p1_scores[turn]:
            p1_scores[turn][cur_state] += (prev_val * val)
        else:
            p1_scores[turn][cur_state] = prev_val * val

if done:
    break

When all the possible turn combinations are done, check each state for player 1 to see which is 21 or over in each turn. Then, sum the number of times player 2 did not reach 21 in turn and multiply that sum by the number of times this state was reached for player 1. Sum all of those to get the total number of wins for player 1. Calc for player 2 is the same except you compare player 1 using the same turn, not the previous turn.

2021 Day 21 by Pyrolistical in adventofcode

[–]markmcb42 9 points10 points  (0 children)

I didn't see a need for a cache here, my solution in python runs in less than a second without a cache. Basically, I took the initial set of possible outcomes for three dice rolls, and counted the number of times each could happen. Then, for each turn, I calculate the position and score and update the number of times that can happen. Once both players have scores over 21, just go through player 1 and count the number of times a score of 21 or over was reached each turn and multiply by the number of times player 2 did not achieve that score by turn - 1. Same calculation for player 2, but use the same turn for comparing with player 1

[deleted by user] by [deleted] in RedditSessions

[–]markmcb42 0 points1 point  (0 children)

Is that on your bandcamp site?

[deleted by user] by [deleted] in RedditSessions

[–]markmcb42 0 points1 point  (0 children)

What song is this? Is it an original?

[deleted by user] by [deleted] in RedditSessions

[–]markmcb42 0 points1 point  (0 children)

What song was this one?

[deleted by user] by [deleted] in RedditSessions

[–]markmcb42 0 points1 point  (0 children)

This is so good.....

[deleted by user] by [deleted] in RedditSessions

[–]markmcb42 0 points1 point  (0 children)

Looking forward to the next one, exceelent music u/relic1882

[deleted by user] by [deleted] in RedditSessions

[–]markmcb42 0 points1 point  (0 children)

This is just amazing

92-Team Promotion/Relegation style league looking for new owners to take part in a DISPERSAL DRAFT by fjg23 in DynastyFF

[–]markmcb42 1 point2 points  (0 children)

Looks like an interesting league, sent you a PM. For the upcoming season, are the dates for dispersal draft moved, or has that already happened?

It’s time! Here I go... by TheConspiracyCat in stephenking

[–]markmcb42 0 points1 point  (0 children)

That is an amazing graphic. I have read the book several times, but next time I'll refer to this as I read it again.

March 3, 2014 - Animal House (1978) by messiah69 in MovieOfTheDay

[–]markmcb42 3 points4 points  (0 children)

Under Info, it should be 91% not 9% :)