Coding

Okay.... I am very late this week, so I just thought I'd share some coding I did for one lateral thinking puzzle and a lot of riddles, for a project. If you enter this into an html compiler, than you should be able to answer some riddles for fun!

(If you want to try to answer the, don't look at the answers in the code!!!)



<p>'You are walking through a desert one day and you find multiple bags of sand. Later, you find a bunch of food, and a shattered wine glass. A little later, you find clothes scattered around. Finally, you see a dead, naked man, holding a short straw. What happened?'</p>

<button type="button" onclick="alert('There was a hot air balloon that started sinking...  fast. The  three men inside, threw out the sand bags. It kept sinking, so they threw out their picnic. It started floating again, but then started to sink, so they threw out their clothes. Finally, they drew straws to see who would have to jump.')">Click Me For The Answer!</button>



</div>



<p> </p> In a one-story pink house, there was a pink person, a pink cat, a pink fish, a pink computer, a pink chair, a pink table, a pink telephone, a pink shower – everything was pink! What color were the stairs?<p> </p>



<button type="button" onclick="alert('There weren’t any stairs, it was a one-story house.')">Click for the Answer</button>



<br>

 <br>

 What has hands but can’t clap? <p></p>



<button type="button" onclick="alert('A clock.  ')">Click for the Answer</button>



<br>

 <br>

 What is at the end of a rainbow? <p></p>



 <button type="button" onclick="alert('The letter W.')">Click for the Answer</button>



<br>

 <br>

Which letter of the alphabet has the most water? <p></p>



 <button type="button" onclick="alert(' C ')">Click for the Answer</button>



<br>

 <br>

 What goes up but never goes down? <p></p>



 <button type="button" onclick="alert(' Your age.')">Click for the Answer</button>



<br>

 <br>

What starts with the letter “T,” is filled with “T,” and ends in “T?” <p></p>



 <button type="button" onclick="alert('A teapot')">Click for the Answer</button>



<br>

 <br>

 You draw a line. Without touching it, how do you make the line longer? <p></p>



  <button type="button" onclick="alert('You draw a shorter line next to it, and it becomes the longer line.')">Click for the Answer</button>



<br>

 <br>

How many months have 28 days? <p></p>



 <button type="button" onclick="alert(' All 12 months.')">Click for the Answer</button>



<br>

 <br>

 Name four days of the week that start with the letter “T.” <p></p>



 <button type="button" onclick="alert('Tuesday, Thursday, Today, and Tomorrow. ')">Click for the Answer</button>



<br>

 <br>

What comes once in a minute, twice in a moment, but never in a thousand years? <p></p>



  <button type="button" onclick="alert('The letter M.')">Click for the Answer</button>



 <br>

 <br>

 What goes around and around the wood, but never goes into the wood? <p></p>



 <button type="button" onclick="alert('The bark on a tree.')">Click for the Answer</button>



 <br>

 <br>

 Railroad crossing, watch out for cars. Can you spell that without any Rs? <p></p>



  <button type="button" onclick="alert('T-H-A-T.')">Click for the Answer</button>



I hope you enjoy answering these riddles!



PS, LMK if you have any cool puzzles/riddles in the comments!

Comments

  1. Hey Olivia,
    What a fun bunch of riddles. I missed six of them. The first one I would never have figured out. Nice job on the coding. I'm impressed!

    I read some other students' blogs and several of them mentioned that they didn't like coding; they thought it was boring.

    Did you enjoy doing the coding to make these riddles?

    Ms. Kast
    #STUBC Commenter

    ReplyDelete
    Replies
    1. Hello Ms. Kast,
      I did enjoy making these, though it was very frustrating to figure out. I did do this with a friend to help, and a few people giving us hints about what we were doing wrong . It took what seemed like forever to get this to work, but it was all worth it in the end when it finally worked for our riddles!

      Delete

Post a Comment

Popular Posts