From: Tim Hunter Date: 2006-10-13T05:10:09+09:00 Subject: Re: New to ruby questions Jeremy Woertink wrote: > > The problem I am running into is I get the error " uninitialized > constant Game (Name Error). How do I tell ruby to make a new game class > to start the game. > the whole code is here http://rafb.net/paste/results/3kQ9pr90.html > Also, if anyone can help me to understand how to end the game or any > other things you might find that can help I would greatly appreciate it. > Welcome to Ruby, Jeremy! Ruby programs are executed from the top down. You should move all your class definitions to the top of your program file so that Ruby will read their definitions before it reads your code that actually uses them.