Closed vivekvr1 closed 11 months ago
@vivekvr1 Excellent, nice to see how you used the initialize method to set the values. Great work 🚀 You can follow me and star this repo for further updates.
Have fun!
I will definitely follow you and star this repo so that I can stay up-to-date on your work. I'm excited to see what you do next!
The code you provided is a simple trivia game in Ruby. It works by creating an array of questions, each of which has a question and an answer. The game then asks the user each question in the array and checks their answer. If the user answers correctly, their score is incremented. At the end of the game, the user's score is displayed.