/say-anything

The impossible Say-Anything-Challenge

Primary LanguageRubyMIT LicenseMIT

Say-Anything Build Status

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