Implementation of Superfight code. Awesome ++
THIS IS NOT REAL CODE (just sample for a class)
Add this line to your application's Gemfile:
gem 'superfight', github: "rubyoffrails/superfight"
And then execute:
$ bundle
puts "What is your first fighter's name?"
fighter_a = $stdin.gets
puts "What is your second fighter's name?"
fighter_b = $stdin.gets
match = Match.new(Fighter.new(fighter_a), Fighter.new(fighter_b))
puts "The winner of match is ....... #{match.winner.name}"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request