The Odin Project - Rock Paper Scissor game (against the computer)
My first game built from scratch!
Log of steps taken: (using only JS - UI will be added during later parts of the curriculum 10/18/21)
- Linking js file with html document using script tag.
- Writing a function to choose a random move from an array.
- Writing a funnction to play one round of game (my input is already selected and stored in a variable for this step temporarily).
- Writing a function to play 5 games in a row while logging score.
- Writing a function to report the winner/loser.
- Writing a loop to repeat function calls.
- Revising the single round function to ask for user input using prompt. Add additional revisions to report computer selection vs player selection in console before scores.
I went through several days of debugging and through it realized the importance of declaring global vs local variables. This project took a lot longer than I anticipated (and quite frustrating at times) but was also exhilarating. Looking forward to working on the UI portion of the game soon!