In this PBL I will create a hide and seek like game inside of scratch. The player will attempt to find the computer while it is hiding behind rocks, clouds, and more in an extreme landscape. The player will have a limited amount of tries to find the computer, and if the player doesn't find it, the computer wins, but if the computer is found within the try limit the player is victorious. Since the computer loves hide and seek, at the end of each game it asks the player "Do you want to play again?"
How will a player fair against a robot with randomly generated hiding spots in scratch?
The procedure for this game is simple, first I will make the code for the computer who will hide. I will also code and implement object such as rocks and bushes for the computer to hide behind as they are being sought out. The player, the robot, and objects will come together on a background where they will behave with one another.
Not much needs to be said for the safety but please do not play with computers physically. Computers are not a toy and need to be connected to a monitor and other peripherals to be useful. Do not stick your hand into an open computer and make sure all wired connections are not exposed. Do not download from an untrustworthy source.
This project implements math and random number generation in order to determine where the robot will go once it is hiding. The same technic will also be used by the robot so it can determine what spots to check once the player is hiding and the robot is seeking. The coordinates of the hiding spots will be made known to the robot and it will determine what spots to hide by a random number generator which generates a random coordinate within the location for hiding spots. The same technique is implemented when the robot is seeking but for finding the player instead.
I learned the game creation process and how to create a no-code user interface for the player to use.
I learned a lot more about the scratch programming language and coding in general such as the use of random numbers.
I learned how to create a compelling website using google sites.
I learned how to use software such as OBS to record videos for my project and how to upload videos to YouTube so that they could be viewed.
Future applications of the project could be to use AI machine learning in order to determine what spot the player checks the most and what spot is checked the least. For example the AI would be able to choose not to hide in a commonly checked spot but instead hide in a spot the is checked less often, instead of a random place.
This form of hide and seek uses random numbers and does not contain any machine learning, although a hide and seek A.I. might be a future project that I would look in to.
My hide and seek project is not extremely difficult to make but is not very simple either. An understanding of various scratch blocks include random number generators and if and else statements are needed to create a project like this, as well as many other types of blocks.
I chose scratch for this project because scratch is simple to use and has a lot of application for making little games such as mine. There is no need for knowing syntax in scratch making it welcoming to newcomers of coding. It is a great tool for learning the process and skills needed to code without having to worry about spelling and grammatical errors.
I will not be using any scratch addons such as the pen and hand tracker for this project because it can be completed with the locks already in the base version of scratch. Although I can see an undated version of the game in which you have to move your finger around to find the hider, I do not see such features and add-ons being implemented in the games current version.
You can also access my game using this link: https://scratch.mit.edu/projects/762753243/
These are the bat costumes. The purple circle is used when the bat is hiding so that the bat is small enough to not show from behind the hiding objects.