Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Basic Programming Script (code available in description)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
143 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 17, 2010

Here is the code for wow.rb:

puts 'What did you call your world of warcraft character?'
name = gets.chomp
puts 'What level is ' + name + '?'
level = gets.chomp
better = level.to_i + 1
puts ''
puts ''
puts name + ' encounters and kills a buffolo'
puts name + '\'s level raises by 1'
puts name + ' is now level ' + better.to_s

And for calc.rb:

puts 'Whats your name?'
name = gets.chomp
puts "What is your favorite number " + name + '?'
num = gets.chomp
better = num.to_i + 1
puts better.to_s + ' is a better and bigger number.'

I don't understand these codes, how do I learn coding? Try this link: http://pine.fm/LearnToProgram

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more