/word-bulls-and-cows

Ruby CLI implementation of Bulls and Cows game.

Primary LanguageRuby

Bulls and Cows (aka Word MasterMind)

Ruby CLI implementation of Bulls and Cows game.

Rules

  • Choose a 4 letters word (like LOVE)!
  • Words with duplicate letter (like BOOK) won't count.
  • Computer will try to guess the word and you will have to give the Bulls and Cows number.
  • The number of Bulls - letters correct in the right position.
  • The number of Cows - letters correct but in the wrong position.

Requirements

  • Unix based system
  • Recent Ruby (Preferably >= 2.4)

How to Play

  • Clone the repo on your desktop.
  • Open up the console and go into the game directory.
  • Issue command: ./bullsncows
  • Follow onscreen instructions.