Search⌘ K
AI Features

Computer’s Move

Explore how to create a JavaScript function that selects the computer's move for a Rock Paper Scissors game. Learn to use JavaScript's random functions to return one of the three options. This lesson helps you build the game's essential interaction before advancing to the game loop.

What have we got?

We have set up the user’s input. This is our inventory of ...