mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-27 13:14:15 -08:00
reorder methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user