Bootcamp Highlights - Ruby 101
Guest post by Kimberley HaywardLast Wednesday we had the opportunity to welcome Lena and her team of helpers from Flux Federation to campus, where they shared with us some basics of the Ruby language and helped us write a couple programs.First, we learnt some of the basics with some simple code to calculate how long, in seconds, you have been alive for and then print it to the console:Next, we moved onto something a bit more complicated; making a game where the user has three chances to guess a randomly generated number from 1 to 10, with appropriate print statements so the user knows when they’ve won or lost. There were a lot of ways to do this, for example:Wanting something else to try? Try making something like Hangman or inventing your own game!