This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const computerPlay = () => { | |
var x = ['Rock', 'Paper', 'Scissors']; | |
const c = x[Math.floor(Math.random() * x.length)]; | |
return c; | |
} | |
const playRound = (playerSelection, computerSelection) => { | |
if (playerSelection === 'Rock') { | |
if (computerSelection === 'Paper') { | |
console.log('You Lose! Paper beats Rock lol'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> names = [ | |
'beer', | |
'turner', | |
'brown', | |
'fox', | |
'clarke' | |
]; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.