Skip to content

Instantly share code, notes, and snippets.

@MelanieS
Created June 27, 2012 05:19
Show Gist options
  • Save MelanieS/3001649 to your computer and use it in GitHub Desktop.
Save MelanieS/3001649 to your computer and use it in GitHub Desktop.
ascii_gui.rb
motion = ""
while motion != "off"
puts
puts
puts
puts " STOP"
puts " FORWARD"
puts "Left Speed......Left..........................Right.......Right speed"
puts
puts " BACKWARD "
puts
puts
puts
puts "what direction would you like to go"
motion = gets.chomp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment