View on GitHub


An addictive game to help slog through flash-card memorization

download .ZIPdownload .TGZ


What is it?

Use a deck of flash cards to play the card game war!

Creates a deck of 52 flash cards and assigns them all suits and values. To win a round you must have the higher card and answer the opponents card correctly. Incorrect answers result in a draw. The opponent has a scaled-by-difficulty chance to answer your card correctly if it has the higher card.

War is declared when you both have the same value card. To win War, you must answer 2 of your opponent's 3 cards correctly.

Game ends when one of you is out of cards.

Implementation concepts


Add this line to your application's Gemfile:

gem 'warcards'

And then execute:

$ bundle

Or install it yourself as:

$ gem install warcards


As of today, if you run bin/warcards it will play a game of war with you and quiz you as you play.


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request