What benefit comes from breaking down the construction of bigger projects into smaller pieces?
it allows us to simplify the problem so we can get a better understanding of what we need to code and make fewer mistakes.
Why did we constantly check and test our code? What could go wrong if we did not test our code thoroughly?
If we wait to check the code at the end it could snow ball into a bigger problem that is more challenging to check. For this reason it is important to check frequently.
What would we need to add in order to make this game usable for 2 players instead of 1 player and 1 computer? Include pseudocode as part of your answer to assist in thinking about changing the project from PvC (player vs computer) to PvP (player vs player).
Inorder to have this game work for 2 players you would need to add another set of inputs for the second player. The best way to handle this on the JS side would be to have a global variable outside of the functions that is originally -1. After a user1 inputs the selected function will check to see if the value is -1 or something else. If -1 then we know that the user1 just gave us an input and we then set the current value of the user to that variable. If not -1 then we know the input is user2 and we can compare the users choices. Then we just need to make sure we reset the global variable to -1. You can see a sample of this here. In order for the game to be fair we would have to have the users select their options without looking at what the other user said.