Skip to content

Files

Latest commit

 

History

History
14 lines (11 loc) · 427 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 427 Bytes

random_number_game

First few lines of code added

Principal learning points

  • puts/prints
  • creating variables
  • Using gets and gets.chomp method to prompt for user input
  • Using Interpolation
  • Calling 'rand' method and adding a maths operator
  • converting an input or string to an Integer using .to_i method
  • Using if/elsif conditional statements
  • Using boolean values and setting a variable to a default boolean value