Implementation of a Rock Paper Scissors game
Functions built:
- playGame;
- playRound;
- getComputerChoice;
- roundWinner;
- updateScore;
- updateTable;
- resetChoices;
- checkEndOfMatch.
JS constructs/methods:
- if-else statements;
- while loop;
- Array.from to convert HTML Collection to an array;
- forEach array method;
- Access elements by ID, class name, tag name and querySelector;
- Use of element.createElement and element.appendChild;
- Text edited on the interface using .textContent;
TODO:
- Add hidden button on laptops/desktops. Button should allow start of game on mobile devices.
- Style table for results