-
-
Save Haseeb-Qureshi/3d6ea350690f47790fe8f13b729a00e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_forward! | |
puts "Current password: #{@password}" | |
ALPHABET.each do |char| | |
guess = @password + char | |
if @api.include?(guess) | |
@password = guess | |
build_forward! | |
# once I'm done building forward, jump out of all stack frames | |
return | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment