Use a control loop such as while(!correct) that wraps your guessing
logic.
-- 
Posted via http://www.ruby-forum.com/.