Skip to content

lkdjiin/bulls-and-cows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bulls-and-cows

Game of Bulls and Cows on the terminal.

I'm writing this in the process of learning Clojure.

Installation

TODO

Usage

$ cd bulls-and-cows
$ lein run

Alternatively, call lein run with any args to enter debug mode (ie lein run debug). Debug mode prints the secret at the beginning of a game ;)

TODO

$ java -jar bulls-and-cows-0.1.0-standalone.jar [args]

Examples

$ lein run
Your guess? 1234
                    1 - 1234 - 0B 1C
Your guess? 5678
                    2 - 5678 - 1B 1C
Your guess? 9012
                    3 - 9012 - 1B 1C
Your guess? 1569
                    4 - 1569 - 0B 2C
Your guess? 2780
                    5 - 2780 - 2B 0C
Your guess? 5780
                    6 - 5780 - 3B 0C
Your guess? 5710
                    7 - 5710 - 4B 0C
You win!
Play again? y/n

License

Distributed under the MIT License.

Releases

No releases published

Packages

No packages published