http://cardstori.es/

Copyright (c) 2011 Loic Dachary <loic@dachary.org>  (software)
Copyright (c) 2011 Farsides (software, artwork, gameplay)

   Authors:
    Loic Dachary <loic@dachary.org> (software)
    Tartaruga Feliz (artwork)
    Xavier Antoviaque (gameplay, software)
    David Blanchard (gameplay)

  A player (who we will call the author) creates a new game. 
  He chooses a card, picks a word or a sentence to describe it
  and invites players to participate.
  Each players is given seven cards and are required to pick
  one that best matches the author's sentence.
  Once enough players have chosen a card, the author displays all chosen
  cards and the players try to figure out which one is the author's.
  The author wins if at least one of the players guesses right, but not all
  of them do. The winners are the author and the players who guessed right. 
  If the author loses, all the other players win. 

# display usage
PYTHONPATH=.:etc/cardstories twistd cardstories --help
# run locally 
PYTHONPATH=.:etc/cardstories twistd --nodaemon cardstories --static $(pwd)/static --port 5000 --interface 0.0.0.0 --db /tmp/cardstories.sqlite --plugins-dir plugins --plugins 'auth solo' --plugins-pre-process 'auth solo' --plugins-post-process auth --plugins-libdir /tmp
# run locally with mails
PYTHONPATH=.:etc/cardstories twistd --nodaemon cardstories --static $(pwd)/static --port 5000 --interface 0.0.0.0 --db /tmp/cardstories.sqlite --plugins-dir plugins --plugins 'auth solo mail' --plugins-pre-process 'auth solo' --plugins-post-process auth --plugins-libdir /tmp --plugins-confdir tests
# check if the webservice replies. The following must return the {"win": {}, "games": [], "modified": 0} string
curl --silent 'http://localhost:5000/resource?action=lobby&my=true&player_id=TEST&in_progress=yes'

To update the version edit
debian/changelog
cardstories/static/index.html
To create a source distribution use:
make -f maintain.mk all ; v=1.0.6 ; python setup.py sdist --dist-dir .. ; mv ../cardstories-$v.tar.gz ../cardstories_$v.orig.tar.gz
To create the Debian GNU/Linux package use:
dpkg-buildpackage -S -uc -us
