0Pricing
Javascript for Kids · Lesson

Computer Picks

Random choice.

The Robot Player 🤖

To play against the computer, the computer needs to pick rock, paper, or scissors too!

But how does a computer choose? It uses randomness! 🎲

console.log('The computer is thinking... 🤖')
console.log('It will pick something random! 🎲')

What is Random? 🎲

Random means a surprise! You don't know what you'll get. 😲

It's like spinning a wheel or rolling a dice. Anything can happen! 🌀

console.log('Random = a surprise! 🎉')
console.log('Like rolling a dice 🎲')

All lessons in this course

  1. The Rules
  2. Computer Picks
  3. Who Wins?
  4. Play Again
← Back to Javascript for Kids