rockPaperScissors.js
const getUserChoice = userInput => {
userInput = userInput.toLowerCase();
return (userInput === 'rock' || userInput === 'paper' || userInput === 'scissors') || userInput === 'bomb' ? userInput : console.log('Invalid choice!');
}
const getComputerChoice = () => {
const seed = Math.floor(Math.random() * 3);
switch (seed) {
case 0:
return 'rock';
This file has been truncated. show original