I am learning Ruby and I have made this simple guess the number game. However, I am getting error that I cant track down because I am new to Ruby. The error reads in greeting undefined local variable or method the_game. I would think this might be a scope problem but I am not sure. Any ideas on what is going on?
I would try removing any reference to "the_game" inside the Game class. That is, where you have written things like the_game.cls and the_game.pause anywhere on lines 15-121, just write cls and pause instead.
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck