guess.rb HW

The game works as long as you play by the rules. I noticed too late the spec to output an error if the user guess is outside of the 1-10 range and it is past bed time. Everything else should work.

I also was not able to make consistent commits leading up to the final product as I was having trouble connecting my Virtual Box to the wifi. It was only showing a wired connection, but I later figured out the VB has a LAN connection to windows which was not connected to wifi. I've never used a Mac and am becoming more of a believer every day.
You could use 'break' here to break out of the loop. Or, you could have a second condition in your 'while' loop.
e.g.
while i < 3 and guess!= number