reorder methods

This commit is contained in:
Glenn Vanderburg
2022-03-04 17:10:18 -06:00
parent e0f0418e99
commit 8e403d4d52

View File

@@ -20,6 +20,12 @@ def main
end
end
def yes?(prompt)
print "\n#{prompt} "
answer = gets
return answer.downcase.start_with?("y")
end
def print_banner_and_instructions
banner = "Creative Computing -- Morristown, New Jersey"
@@ -89,10 +95,4 @@ def get_guesses(prompt)
end
end
def yes?(prompt)
print "\n#{prompt} "
answer = gets
return answer.downcase.start_with?("y")
end
main