reorder methods

This commit is contained in:
Glenn Vanderburg
2022-03-04 17:10:18 -06:00
parent a55f63ad6c
commit 0cb7cc9046

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