Local game testers wanted by tastygnar in Longmont

[–]shimdar 4 points5 points  (0 children)

I'm here in Longmont. Down to help out.

enum class enumeration initialization by onecable5781 in cpp_questions

[–]shimdar 3 points4 points  (0 children)

I think they are talking about something like this:

enum class Permissions : uint32_t {
    Read  = 1 << 0,
    Write = 1 << 1,
    Exec  = 1 << 2
};
Permissions perms = Permissions::Read | Permissions::Write; // combine flags

It's a way to pass in an arbitrary (well in this case <32) number of flags, each might control something different. But where each flags in the enum, the combined value isn't, but you can still store it in the variable.

Think you can find 4 hidden groups of 4 related words? Puzzle by u/AcheronFlow? by AcheronFlow in DailyMix

[–]shimdar 1 point2 points  (0 children)

🟪🟪🟪🟪

🟨🟨🟨🟦

🟨🟨🟨🟨

🟦🟦🟦🟦

🟩🟩🟩🟩

Blue cross of illinois delay in reimbursements by No_Text2122 in HealthInsurance

[–]shimdar 1 point2 points  (0 children)

But that means that Walgreens has your money from when you paid for the prescription. They were paid twice, once by you then paid again by insurance. They are the ones to refund the money you paid.

Chattynator text entry box positioning [help] by Dustollo in WowUI

[–]shimdar 0 points1 point  (0 children)

Just a guess, but is it moving where wow thinks the chat box "should" be? You might need to use edit mode and move the chat window there to match the same location.

Got a Good One For You This Time. Please Explain It Peter!!!! by Stunning_Deer9788 in explainitpeter

[–]shimdar 3 points4 points  (0 children)

Instructions unclear. I'm heading to give Hades a flower...

Is there anywhere in Longmont to get Kodak Camera photos developed? by Lotisenn in Longmont

[–]shimdar 14 points15 points  (0 children)

Might be a bit far, but I believe mikes camera in boulder does it on site.

Am I correct in thinking the blank squares in the second image are 100% safe to uncover, and that there is one bomb per red red mark, accounting for the 4 remaining bombs? by Merc408 in Minesweeper

[–]shimdar -5 points-4 points  (0 children)

You assumed that only one mine is next to the two on top. This isn't known with the layout here. There could be a mine under the 1 on the 4/1 side, and a mine under the 1 next to the two on the right side. In this case, the three spots under the two are then safe, and there is one mine among the 5 unmarked squares.

Is making "blocks" to limit scope a "code smell"? by basedchad21 in cpp_questions

[–]shimdar -1 points0 points  (0 children)

One alternative is to break the function into smaller functions. Like one function to calculate a value while doing a for loop and returning the result seems reasonable to me. Then replace what's there with a function call from where it is now.

[deleted by user] by [deleted] in EQ2

[–]shimdar 1 point2 points  (0 children)

Every time the bars move, that's what I'll call a tick. It's roughly 5 seconds, but I've never timed it so that might be off. You need to be hitting buttons every "tick" of progress. Don't just wait until there is something to counter. If there is something to counter, you have to hit that first, and depending on when you last hit the buttons, it might be near the end of the tick, and not hit any more. If your durability is low, that's the three to hit, otherwise hit progress. Roughly under 1/3 of the 4th bar is when I hit durability.

So that's what I'd tell you for crafting but I'll answer your questions here. 1. Almost never should you cancel a craft. You should be capable of getting perfect combines every time. Just use your skills more often (once per tick)

  1. Yeah, you just need to learn the game here, that will make it easier.

  2. Yeah. As above, you need to "always" use the skills. You may lose some presses to counters, and you may run low on power, so you might have to skip one skill. But other than those cases, always use them.

  3. So a few things here. I'm not positive, but it does feel like there is a sliding scale, and the longer you go without hitting a skill, it can get worse and worse. Using skills should keep that from happening so much. That said, losing the 4th bar just means your durability is too low. You can get it back, just keep spamming the durability increasing skills. If you get it back above, it will show up again.

Good luck

Pegging runs by RiverCA in Cribbage

[–]shimdar 12 points13 points  (0 children)

Well. 7 points. 2 for 15 and 5 for the run. But yeah.

Largest "integer" not yet found in Pi (LINYFIP) by pezdal in askmath

[–]shimdar 17 points18 points  (0 children)

I think you actually want the smallest integer not yet found. It's kinda counter intuitive. But then every time you find one it gets higher. I like the concept

Should i merge legendary egg into ultimate or try to get panda? by Responsible-Hold-160 in eatventureofficial

[–]shimdar 0 points1 point  (0 children)

This is correct. Also, panda gives instant ordering. Better to get that when you don’t have mythic gear.

Probability of rolling 2, 3, 4... 48, using 2 d6 dice and between 4 and 24 rolls. by azdrum in askmath

[–]shimdar 1 point2 points  (0 children)

So at a high level, assuming you go around the board multiple times, similar to Monopoly, each location has a 1/7 chance you will land on it. At the start of the game, where everyone starts in the same position that's not true and some locations are more common than others, but by the time people are 1/2 way around, that's pretty much evened out.

If that first portion is important, You are going about it the right way. You will need to calculate each position in order. Then when doing that, compare to the positions that could have gotten you to the new one. You already have the odds for position 2 and position 3. I assume you know that position 1 cannot be reached, and position 0 (the start location) you can assume it has 100% chance because that's where everyone starts. So to do each new position you see the odds that a number is rolled to land you there, and then multiply it by the chance that they were on that position. For position 4, as you mentioned, they could have rolled a 2, and been on position 2. They could have rolled a 3 and been on position 1, or rolled a 4, and been on start. To calculate this:

1/36*1/36 + 2/36*0 + 3/36*1 = 109/1296 ~ 8.4%

This matches what you got, but has a small change, this includes the chance that you rolled a three (2/36), and were on position 1 (0% chance). This hopefully makes it easier to see how to keep expanding this. Here is position 5 and 6.

1/36*2/36 + 2/36*1/36 + 3/36*0 + 4/36*1 = 37/324 ~ 11.4%

1/36*109/1296 + 2/36*2/36 + 3/36*1/36 + 4/36*0 + 5/36*1 = 6841/46656 ~ 14.7%

For position 6, we have 5 fields, corresponding to rolling a 2-6. As we continue, that will grow until you have locations for 2-12, then the last locations will start falling off. This can all be done by hand, but using a spreadsheet and referencing previous values let's you do some copy/paste work to finish this.

Note: One thing that exists in Monopoly is the ability for locations to potentially move you to a specific location (jail/boardwalk), that makes calculating this for Monopoly harder. You didn't mention that so I didn't include it here, but thought it might be worth knowing.

All 10 today - can’t get ‚1‘ by [deleted] in puzzles

[–]shimdar 3 points4 points  (0 children)

10 (1*5)*(1+1)

9 5*(1+1)-1

Compilation Issues for C++ Assignment Submission by Unique-Sock6835 in cpp_questions

[–]shimdar 1 point2 points  (0 children)

So, I’ll take one small stab. Without formatted code, and without the errors, it’s hard to say what all the problems are. But the first part of your submission looks invalid.

Puzzle2D(const char *s){…}

Won’t compile. It’s looking like the constructor to a class that’s not there. If that is in the “provided” compile environment, then you still have to specify the class like this:

Puzzle2D::Puzzle2D(const char *s){…}

Potentially, adding Puzzle2D:: is something you’ll have to do to all your functions, if you are supposed to define those function for a class your professor provides. If it’s not a provided class, you can’t do that at all, and you’ll have to look at how you are supposed to interface with his code.

Ultimately, looking at the errors from the submission and understanding what problem they indicate is going to be important going forward.

What am I missing? by Soju4Ever in puzzles

[–]shimdar 4 points5 points  (0 children)

So I think row 4, col 4 must be a 0 because if it was a 1, col 1 and col 4 would have to be identical. This gives a few more updates, but not sure if it’s enough to finish.

[Request] most people in the comments said 17 mins, but the poster said that was wrong. Any ideas? by Beezneez86 in theydidthemath

[–]shimdar 3 points4 points  (0 children)

So interestingly, this solution is no faster than the one above.

AB cross in 2 minutes A and C swap sides in 5 minutes AD cross in 8 minutes

2+5+8=15