Formerly /u/Zagorath on the alien site.

  • 12 Posts
  • 468 Comments
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle






  • She comes sometimes at need,
    But never at your heed.
    To meet with her is jolly,
    To push her would be folly.

    Who is she?

    edit: for bonus points, I first came across this with a second step in the puzzle. Not a riddle, but a different kind of puzzle. Solve this:

    Cyphertext

    Lweycxkxr nq kwf mxzqp vlqu yq uxslnkyy, njocy kc yi ykj u dop mjyfff lp udvp nq pws. Kdd qkxrm cbp nqy dgcvw nq qpn kdd zcd wcvdwy dyos qpq njo rlqeyx. Vrp vgo, zz eyfluo, qfkod upihua lpwcedy dopm fyy’n ekcy yrln jexupc ebkxv cu sxjqcdcdvp.

    Though that’s not the same text I had the first time (it was in a D&D game and the text was related to that), the same technique would need to be applied to read the above text. The riddle’s solution is relevant.




  • As far as pseudocode goes, this is pretty damn good. The main thing I’d change is that things in “quotes” generally represent strings, i.e. literal text. Variable names usually don’t have quotes around them. That’s a universal enough trait of real programming languages that it would almost never not transfer to pseudocode. Also, numbers intended to be read as numbers don’t typically have quotes.

    How I would change this accordingly
    If
    am_pm_indicator = "pm"
    AND
    hour =/= 12
    ADD 12 to hour
    
    Else
    Ignore the am/pm indicator, time is correct in 24 hour format. # Leaving this as-is because it's more like a comment than code anyway