Week 5 - Creating a game while collaborating with AI
Creating an HTML Game with AI
Going back to my high school years, I was always very interested in learning how to program properly. I took Python and Computer Science classes in order to learn this, and went through the very long hours of studying, and using all possible resources in order to create simple codes. This week, I decided I would try to create a game using HTML code, and getting help from AI.
This new addition made an unbelievable difference. Not only was I able to get an simple example from the AI software, but I was able to collaborate and work with it to fix any issues I came across. Something that would have taken me hours to do a few years ago, took half that time. Instead of having to go to a peer, or teacher, I was able to ask the AI, and work with it, to be able to come to a solution.
Step 1: HTML Structure
We started by creating the basic HTML structure for our game. This includes elements for the game title, input field for the player's guess, a submit button, and a message area for feedback.
Step 2: JavaScript Logic
Next, we added the JavaScript code to handle the game logic. This includes generating a random number, comparing the player's guess with the random number, and providing feedback to the player.
Step 3: Adding the game to Blogger.com
Adding the game to Blogger.com was the trickiest part. However, after spending some time making sure all of the code was inputted correctly, the game worked perfectly!
After those three steps, we were able to create a functioning guess the number game on Blogger.com!
Guess the Number Game
Try to guess the number between 1 and 5:
Comments
Post a Comment