Skip to content

obfusk/cahpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File        : README.md
Maintainer  : Felix C. Stegerman <flx@obfusk.net>
Date        : 2020-03-26

Copyright   : Copyright (C) 2020  Felix C. Stegerman
Version     : v0.0.1
License     : AGPLv3+

AGPLv3+

Description

cahpy - capybaras against humanity

Cahpy is a web-based clone of the card game "Cards Against Humanity" with some "house rules" built-in.

Installing

Just git clone :)

Requirements

Python (>= 3.5) & Flask.

Debian

$ apt install python3-flask

pip

$ pip3 install --user Flask   # for Debian; on other OS's you may need
                              # pip instead of pip3 and/or no --user

Running

Flask

$ FLASK_APP=cah.py flask run

Gunicorn

$ gunicorn cah:app

Heroku

Just git push :)

NB: you'll need to set WEB_CONCURRENCY=1 b/c it only works single-theaded atm!

Packs

You can set CAHPY_PACKS to override the default choice of packs (which is official).

$ export CAHPY_PACKS="uk fantasy sf"  # specific packs
$ export CAHPY_PACKS="all"            # all packs
$ export CAHPY_PACKS="official"       # all official packs
$ export CAHPY_PACKS="unofficial"     # all unofficial packs

Official packs: blue, fantasy, geek, green, intl, red, science, sf, uk, us (some significant overlap).

Unofficial packs: uno-anime, uno-anime-x1, uno-f, uno-hackers, uno-malcont.

Password

$ export CAHPY_PASSWORD=swordfish

Forcing HTTPS

$ export CAHPY_HTTPS=force

License

Code

© Felix C. Stegerman

AGPLv3+

Cards

(i.e. cards/*)

See cards/COPYING.

Official Cards

© Cards Against Humanity

CC-BY-NC-SA