In this lab, we have to make a color sleuth app by using AppLab and the instructions given from the website. In order to make it, you first had to make a wireframe of the app. The wireframe was given either way and all we had to do was code it. So a color sleuth is a game where you have to spot the difference between 4 colors, one color is brighter from the others. In order to code that, I had to make a function that allows the colors to change every time a color was chosen. This require the use of the if command and else command. Also this function also the requirement of randomNumbers so that the colors varies.
Once I got the colors to change when they are clicked, I have to add a scoring system to the game. So I had to make another function that uses if statements to score only when the right color was clicked. Once I got that to work, I designed. the background of the game and published it in my website as Lab #15. I learned a few things in this lab. One thing that I learned is to use if-else statement properly. Another thing that I've learned in this lab is to apply abstraction to the code so that it consent create clutter on the code.

No comments:
Post a Comment