Sha256: cc6f128fc2df9522daeed50d25547f88aea17576f2ceef32e9a51c7543588fd7

Contents?: true

Size: 1.67 KB

Versions: 5

Compression:

Stored size: 1.67 KB

Contents

[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/robie1373/warcards)
[![Build Status](https://secure.travis-ci.org/robie1373/warcards.png?branch=master)](http://travis-ci.org/robie1373/warcards)

# 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
warcards-0.0.7 README.markdown
warcards-0.0.6 README.markdown
warcards-0.0.5 README.markdown
warcards-0.0.3 README.markdown
warcards-0.0.2 README.markdown