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.
To account for guesses that are out of bounds, you could add another 'elsif' to that 'if..elsif..else' that checks to see if the current guess is less than 1 or greater than 10. Of course, you'd need to put it ahead of the 'too high' and 'too low' bits.
e.g.
+ if guess == number
+    puts "Yay! You got it!"
+ elsif guess < 1 or guess > 10
+    puts "Please choose a number between 1 and 10"
+ elsif guess > number
+    puts "Your guess is too high!"
+    i += 1
+ elsif guess < number
+    puts "Your guess is too low"
+    i += 1
+ end