Skip to content

babakhanov/codebreaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codebreaker

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'codebreaker' :git => 'git://github.com/babakhanov1/codebreaker.git'

And then execute:

$ bundle

Usage

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

Contributing

  1. Fork it ( https://github.com/babakhanov1/codebreaker/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages