TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'codebreaker' :git => 'git://github.com/babakhanov1/codebreaker.git'
And then execute:
$ bundle
game = Codebreaker::game.new
game.guessed?('1234')
# you'll get a resolt e.g. '++--' if you find a two codebreaker's digits and return :win if all digits finded in right order
# after 10th calls return :game_over
game.hint!
# return a hint. Only 2 hints per game. e.g. '1' or other one one digit which codebreaker has for you
game.hint! # again
# return a "**1*" or something else but contain a value from previous hint in a right place
game.hint!
# at third time return :hints_over
- Fork it ( https://github.com/babakhanov1/codebreaker/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request