• 1 Post
  • 540 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle
  • Genie in the OP image would’ve said “OK you now have 0 wishes”.

    Since he said 255, my interpretation is a valid solution.

    Of course, if we’re talking hypothetical wish gaining prevention methods, I’d just have a check before,

    previous_wishes = wishes;

    {Do all the wish things. wishes ends up with a 255 because of our shenanigans}

    If(wishes>=previous_wishes) wishes = previous_wishes-1;

    ;If the current number of wishes isnt less than the old number of wishes, set it to the old number and subtract 1

    If(wishes==0) {/*TODO: write function to end wish giving sequence*/}


  • Nah theres just no process for undoing your submission.

    It doesn’t matter when it’s decremented if you can’t interrupt the process, anyway.

    In a code sense we pause for input, feed it to the wishmaker function, and pause until the thread returns, then decrement.

    We could decrement first, also, but neither violates the rules.


  • You’re correct but you have an off by 1 error.

    First, the genie grants the wish.

    NumWishes=0;

    Then, having completed the wish, the genie deducts that wish from the remaining wishes.

    NumWishes–;

    And to complete the thought,

    Lastly, the genie checks if the lampholder is out of wishes

    If(NumWishes==0) {…}

    (255==0) evaluates to False, so we fall past that check.













  • I’ve always used charcoal.

    Sure, coal was easier to find, but charcoal is renewable, and I like that.

    Even ignoring that, 8 logs becomes 7 charcoal, and planting is trivial, so its just faster to farm trees in the long run. Coal is for villagers that demand it, specifically, in early trades.

    Now for smelting I like bamboo, you can fully automate it. Technically you can fully automate kelp now too with the crafter, but bamboo is easy. Just break it like sugarcane and funnel it to your furnace directly, done.


  • Same. I bought my house a year before the housing market went up. Paid 110,000, now my bank says it’s worth 250,000.

    Honestly, as cool as it is for me, that’s just not fair to everyone else. We barely made enough for the 110k loan, and this house is barely big enough for everyone. No fucking way could we have gotten 250k in any sort of loan.

    Also when I say barely I mean barely, the seller actually went down to 110 from 120 because that was the max we could get, and we knew him personally. So on top of the price spike, we actually couldn’t afford our house, if I hadn’t made friends with the guy previously.