<commit_before>
# Build a simple guessing game


# I worked on this challenge [by myself, with: ].
# I spent [#] hours on this challenge.

# Pseudocode

# Input:
# And integer.
# Output:
# Return a symbol 
# Steps:
# firt, I will make a class called Guessing Game.
# Then I will set the class up take a number.
# Next, I am going to define a method called guess takes a number as input.
# This method should return high if the number is larger than the answer, 
# correct if the anser is right, and low if it is lower than the answer.
# I will define another method called solved, it returns true if the last 
# guess was correct and false if not.

# Initial Solution

# class GuessingGame


#   def initialize(answer)
#     @answer = answer
#     @guess = nil
#   end

#   def guess(number)
#     if number > @answer
#       @guess = :high
#     elsif 
#       number == @answer
#       @guess = :correct
#     else
#       @guess = :low
#     end
#   end
#     def solved?
#     	@guess == :correct
#     end
# end




<commit_msg>Update my_solution.rb<commit_after>
# Build a simple guessing game


# I worked on this challenge [by myself, with: ].
# I spent [#] hours on this challenge.

# Pseudocode

# Input:
# And integer.
# Output:
# Return a symbol 
# Steps:
# firt, I will make a class called Guessing Game.
# Then I will set the class up take a number.
# Next, I am going to define a method called guess takes a number as input.
# This method should return high if the number is larger than the answer, 
# correct if the anser is right, and low if it is lower than the answer.
# I will define another method called solved, it returns true if the last 
# guess was correct and false if not.

# Initial Solution

# class GuessingGame


   def initialize(answer)
     @answer = answer
      @guess = nil
   end

   def guess(number)
     if number > @answer
       @guess = :high
     elsif 
       number == @answer
       @guess = :correct
     else
       @guess = :low
      end
   end
     def solved?
     	@guess == :correct
     end
 end





{'fraction_non_alphanumeric': 0.0782312925170068, 'fraction_numerical': 0.0, 'mean_word_length': 2.5808695652173914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2474263', 'n_tokens_mistral': 647, 'n_tokens_neox': 617, 'n_words': 291}