Kyle Schmitt
2/22/2008 11:13:00 PM
Perhaps the first thing is, forget about doing a graphical user
interface until you've got the basics down.
Now, that said, how much have you played around with irb? At this
stage, you'll probably want to just play around with how to store the
questions, the right answer(s), and what you answered. The best way
to play with your data will be in irb.
Try this maybe:
Make a series of hashes that can store the question, one answer and
what you responded.
Write a method to check the answer.
Try making a hash containing several questions.
Write a method to check the % of correctly answered questions in the hash.
Play with it for a few hours.
_now_
Make a class that can store the question, one answer, and what you responded.
Add in methods that check the your response vs the correct one.
And post here if you get stuck :)
Try and not ask for significantly sized examples, because many (most?
myself included...) people here would gladly try write their own quick
solution to the problem, and then you wouldn't learn much from the
exercise :)
--Kyle