Rather than saying `if guess1 > 9` and then later duplicating the 9, I'd do something like:

```ruby
secret_number = 9
if guess1 > secret_number
...
elsif guess1 < secret_number
```