Ruby Quiz #1
This is the first coding quiz in a series of quizzes we will be publishing regularly. Below is a Ruby code snippet that takes in an array and returns a value. Your goal is to figure out what the function is doing and what its purpose is. Write your answer in the comments below!
The only hint is that it involves a game.