# Gloomhaven Ruby gem for generating Gloomhaven characters and ability decks. ## Installation Add this line to your application's Gemfile: ```ruby gem 'gloomhaven' ``` And then execute: $ bundle Or install it yourself as: $ gem install gloomhaven ## Usage ### Basic useage #### Deck Create a `Gloomhaven::Deck` `@deck` object to create a standard 20-`Gloomhaven::Card` modifier deck. ``` require 'gloomhaven' @deck = Gloomhaven::Deck.new => # # shuffle the deck to start @deck.shuffle! @deck.cards.count => 20 # draw some cards @deck.draw => # # check the deck size, it's decreased @deck.cards.count => 19 # Let's bless and curse the deck @deck.bless! @deck.curse! # confirm we added two new cards @deck.cards.count => 21 # let's shuffle the deck again and return the first card we drew @deck.shuffle! # final count of a shuffled deck w/ 1 bless, 1 curse @deck.cards.size => 22 # and let's look at the cards @deck.cards.to_a [ #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, # ] ```