ruby - app is not stopping at "gets" - is my online interpreter forcing a timeout? -


while starting assignment (towers of hanoi), leave code in basic state while ponder logic of how continue.

while arr3.count < 6     puts "move ring tower?"     = gets.chomp     puts "move ring tower?"     = gets.chomp end 

before can start building rest of app, however, gets seems fall through without input me, , second puts displays on screen. continues looping every, say, 30 seconds or so. should assume feature of online interpreters (like codeacademy labs)?

now i'm distracted continuing assignment , have find better place code.

i'm installing aptana (based on advice on forum) see if can better environment assignments. or people use text editor run .rb file through windows console window?

thx


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -