I have a method with an until loop that keeps calling another method until a third method returns true. This is basically checking to see if a puzzle is solved.
def call_loop
until solved? #returns true if puzzle is solved
flip #changes one piece on the board
end
end
Is there a way to have this loop pause before each call to the flip method and wait for the user to press the spacebar?