Gamewords
Find words, phrases, songs, movies, characters, actions and sayings for Pictionary, Catchphrase, Charades or the holidays. Each game has several categories including difficulty levels. This library returns a list for some or all categories.
Installation
Add this line to your application's Gemfile:
gem 'game_words'
And then execute:
bundle
Or install it yourself as:
gem install game_words
Usage
Find a list of games:
GameWords::Generator.new.games
Find the categories for a game:
gen = GameWords::Generator.new
gen.game_categories 'pictionary'
Get all words for all categories for a game:
gen.words 'catchphrase'
Get the words for a game and category:
gen.words 'charades', 'hard'
Easily generate a random word:
gen.words('pictionary', 'easy').sample
Contributing
- Fork it ( https://github.com/[my-github-username]/gamewords/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request