The impossible Say-Anything-Challenge
Computer knows 109 582 english words. Do you think you can beat it ? ๐
The gem can also be used for development (of course ๐).
Install
$ gem install say-anything
Play
First of all, rule is really simple, just say anything !
If you or your opponent is missing words, it's game over !
Rule seems still weird ? Go watch this ๐
$ say-anything --play
Usage
require 'say-anything'
SayAnything.one
# => rainbow
SayAnything.one
# => cat
SayAnything.times 3
# => [ "sugar", "chocolate", "spicy" ]
API
.one
Return : String
Random word.
.times(number)
Return : Array
Times random words.
.all
Return : Array
All words.
CLI
$ say-anything --help
Usage: say-anything [OPTION]
-p, --play
challenge computer at say-anything
-t, --times [NUMBER]
return times random words
-a, --all
return all words
-h, --help
display this help