ShehrozIrfan / ruby-rocks

This is the repository for beginners so that they can use this repository to make their first contribution to an open source project on GitHub. Solve programming problems using Ruby.
MIT License
23 stars 47 forks source link

Add[#53]: more questions and customization options to trivia game #111

Closed vivekvr1 closed 11 months ago

vivekvr1 commented 11 months ago

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.

ShehrozIrfan commented 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!

vivekvr1 commented 11 months ago

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!