Build a rock, paper and scissors game with Node.js, readline and the npm package figlet.
- When the game starts, it should ask the player to choose
rock,paperorscissors. - The computer should choose a random option of
rock,paper, orscissors. - Write some logic to figure out the winner or if there is a tie.
- Log the player and computer choice. For example, after the user selection has been made, log the following:
"Player chose rock and computer chose paper."
Then, using the figlet package, print one of the following messages:
- "Player wins!"
- "Computer wins!"
- "It's a tie!"
