Skip to content
/ remory Public

An Introduction to Ruby: this is a game of memory written in Ruby

Notifications You must be signed in to change notification settings

amgando/remory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Introduction to Ruby

Welcome to Remory, a simple console game based on this memory game.

The goal of this project is to introduce complete beginners to the fun of writing a Ruby program in small, reasonable steps.

The presentation for this project can be found here: presentation

The code in this project are organized into a series of numbered files:

  • 1.rb: the beginning of a game, we can play 1 round
  • 2.rb: we use a loop to play more than 1 round
  • 2b.rb: we fix 2 bugs related to our input
  • 3.rb: a message is displayed when we pick 2 cards
  • 4.rb: message changes depending on whether or not the cards match
  • 5.rb: cards are cleared if they match and reset if they don't
  • 5b.rb: we fix another bug related to our input
  • 5r.rb: refactor some verbose code into something more elegant
  • 6.rb: finally, the game ends!
  • 7.rb: we track how many attempts it took to complete the game

About

An Introduction to Ruby: this is a game of memory written in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages