Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An addictive game to help slog through flash-card memorization
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitattributes
.gitignore
.travis.yml
Gemfile
Gemfile.lock
Guardfile
LICENSE
README.markdown
Rakefile
warcards.gemspec

README.markdown

Code Climate Build Status

Warcards!

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

  • Keep track of # of right and wrong answers for each flash-card.

  • consider using ratio of right/wrong + #times seen to scale how often a flash-card is seen.

  • You might make a pool of questions > 52 and select the question for each card out of the pool as it is 'flipped'. Decouple the flash-card from the game card. the game cards are just a token to track game progress.

Installation

Add this line to your application's Gemfile:

gem 'warcards'

And then execute:

$ bundle

Or install it yourself as:

$ gem install warcards

Usage

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

Contributing

  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
Something went wrong with that request. Please try again.