CPSI 20023 HW4 due M Sept. 28, 2025

Directions: Please provide the code for all questions that involve coding. Answers may be included in the body (instead of as attachments) of an email. No pdf files. Email to CPSI20023@gmail.com.

 

1. Work with the game at http://dberleant.github.io/IFSC3300/HW6c-conditionalsBubbleGame.html. Get a good score. Hand in a screen shot showing the score.

2. Work with the system at https://claude.ai/public/artifacts/b1ab4211-a5c7-4986-9d6f-46d470626d36. Hand in a screen shot showing the final score.

3. For this problem, use the sandbox provided for this HW here.

  1. Make a small function that runs an if statement and shows the result. The function is called by clicking a button. Provide a screenshot of the sandox showing the code and the result.
  2. Make a small function that runs an if else statement and shows the result. The function is called by clicking a button. Provide a screenshot of the sandox showing the code and the result.
  3. Make a small function that runs an else if statement and shows the result. The function is called by clicking a button. Provide a screenshot of the sandox showing the code and the result.
  4. Make a small function that runs a loop and shows the result. The function is called by clicking a button.

4. Using AI, make a sandbox for developing JavaScript and HTML. Hand in the code. Alternatively, build a game inspired by the the early text-based computer game "Adventure." See https://www.historyofinformation.com/detail.php?id=2020. I used to play it, a long time ago. A video that is at least very short, if not perfect, is here. If you find a better video please email me to let me know. I found a free online version at grack.com/demos/adventure (caution: I didn't test it in detail, but it appears to work). To give a hint, it started by saying I was near a building, so I typed "in building" and it moved me into the building. Then it said there were some keys and things on the floor. So, I typed "take keys." It responded with "ok." And so on - you can probably sort of see where this is going.
      Don't worry, your game does not have to be the next blockbuster on STEAM! (But we had a student who did design a blockbuster on STEAM.)