Lab 16 Reflection
Lab 16 implemented skills from our previous lab to make a web page with a game embedded in it. We were to make a game called "Color Sleuth", a 2 player game in which the players are presented with 4 colored tiles. While the tiles are of the same base color one is slightly different. The player gains a point if they choose the different colored tile and losses 3 points if they choose the wrong one. The 2 players take turn until one gets 10 points and wins the game. This game, like other games created so far, was created in App Lab as part of a guided lesson. In short, we set variables meant to store data such as points. We created one main, checkCorrect() , function which itself is comprised of 3 function (and many if statements that call the sub functions under certain conditions). The sub functions were: switchPlayer() , updateScore() , setBoard() . They switched the player in control, updated the score, and (re)set the board every time...