An online Cards Against Humanity clone for network play. Built on Meteor 0.8.0, from http://www.meteor.com
Play it live at http://partyga.me
PartyGa.me is a colossal Cards Against Humanity-esque multiplayer game built on Meteor. Check out METHODS.md
, MILESTONE.md
and SUBSCRIPTIONS.md
for information about how to interact with the API using a non-DDP client.
This game features:
- Over 1,000 original funny answer and question cards.
- Bots! You can't believe what a huge difference this makes.
- A fully browser-based mobile interface
- Location-based matchmaking
- Social invites through Facebook
- A full DDP API for making your own super-high-performance iOS, Android and Unity apps.
- Check out the Unity DDP project at https://github.com/hiddenswitch/Meteor-Unity to make a Unity client for this game!
- A full REST API for non-DDP clients. Visit http://localhost:3000/api/docs when running for the whole API documented in one place.
- Updating to Meteor 0.8.0 has broken a lot of the niceties of the site, particularly around the JQueryMobile features. This means a lot of view look broken on data updates right now, which is too bad. Those used to look really good.
router
has been disabled, which means invitations are disabled.meteor-http-publish
doesn't work with 0.8.0 yet, so the collections API has been disabled.
To run:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew install node
brew install npm
curl https://install.meteor.com/ | sh
sudo -H npm install -g meteorite
git clone [email protected]:hiddenswitch/PartyGame-Web.git
cd PartyGame-Web
mrt --settings tests/settings/settings.json
Visit localhost.
You will have to configure your settings.json
. Check it out for instructions on how to set it up. APNS is pretty useful but unessential.
Open a Javascript console and execute Accounts._storedLoginToken()
. This string is the token for the logged in user. Use this as the token
parameter when making API calls.
The response headers have the wrong encoding. Interpret the bytes as UTF-8
.
GET
-/api/collection_name?token=user_token
- all published dataGET
-/api/collection_name/:id?token=user_token
- find one published document
/api/cards
- The full library of cards
CARD_TYPE_QUESTION = 1; // card of type question
CARD_TYPE_ANSWER = 2; // card of type answer
CARD_TYPE_ADJECTIVE = 10;
CARD_TYPE_NOUN = 20;
[
{
"deck": "Alex",
"category": "Sexual",
"type": 2,
"text": "Child pornography.",
"combo": false,
"random": 0.6748673671390861,
"deckId": "HkcaBLQuuC5sYQQCZ",
"_id": "Q2XbNHZBTgd2TbKAG"
},
{
"deck": "Alex",
"category": "Sexual",
"type": 2,
"text": "Consensual Beastiality.",
"combo": false,
"random": 0.8061031710822135,
"deckId": "HkcaBLQuuC5sYQQCZ",
"_id": "rCB8W2vqax3njnWPM"
},
{
"deck": "Alex",
"category": "Sexual",
"type": 2,
"text": "A fallatio filibuster.",
"combo": false,
"random": 0.14464191277511418,
"deckId": "HkcaBLQuuC5sYQQCZ",
"_id": "urHkYEZbge9HLfRWZ"
},
{
"deck": "Alchemy",
"category": "Sex",
"type": 20,
"text": "DJ Filthy Phallus",
"adjectiveId": "ao6QC7BRuxErRE4aJ",
"nounId": "LdsytGQRpJxgaHrDW",
"combo": true,
"generic": false,
"random": 0.04903906746767461,
"_id": "vQKf9si6BQMNN5yoW"
},
{
"deck": "Alchemy",
"category": "Sex",
"type": 20,
"text": "live-action tentacle porn",
"adjectiveId": "NWLwHYqCLwSggsAmS",
"nounId": "zY3fc6egoC6gmp4qa",
"combo": true,
"generic": false,
"random": 0.7377745481207967,
"_id": "TZDMBgJZ34KSXFMHp"
},
{
"deck": "Alchemy",
"category": "Sex",
"type": 10,
"text": "Japanese",
"combo": false,
"random": 0.22870140755549073,
"_id": "ZnoT3httRQzFtKdDu"
},
{
"deck": "Alchemy",
"category": "Sex",
"type": 20,
"text": "groping on the subway",
"adjectiveId": "ZnoT3httRQzFtKdDu",
"nounId": "eumXpQwCjbX3z5z2Y",
"combo": true,
"generic": false,
"random": 0.07821978675201535,
"_id": "kHZdGdpcQvKRKtsCK"
},
{
"deck": "Alex",
"category": "Sexual",
"type": 1,
"text": "What did I just try for the first time in bed?",
"combo": false,
"random": 0.968256761552766,
"deckId": "aZLtZp4DcD2EZT5Ff",
"_id": "h3HGedmnCHd433jqw"
},
{
"deck": "Alex",
"category": "Sexual",
"type": 1,
"text": "How do I know things are getting serious with my girlfriend?",
"combo": false,
"random": 0.641185819869861,
"deckId": "aZLtZp4DcD2EZT5Ff",
"_id": "JiSJongcB8EncsXXb"
},
{
"deck": "Alex",
"category": "Sexual",
"type": 1,
"text": "████ is a nickname for a Vagina in Africa.",
"combo": false,
"random": 0.2511931585613638,
"deckId": "aZLtZp4DcD2EZT5Ff",
"_id": "weshFGaSQuYKM8oiS"
}
]
/api/games?token=user_token
- Lists all the available games.
Only the server knows which cards are in the deck.
[
{
"_id": "B4yfaCasQ8edNHP6m",
"answerCardsCount": 920,
"botLust": true,
"created": 1389590716875,
"creatorUserId": "AYYkdSNqct5ziX7FK",
"customTitle": false,
"judgeId": "LMcRz7sn74arDf7ZH",
"location": [
-118.38831373213597,
34.0135182148905
],
"locationFriendly": {
"place_id": "9145685209",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
"osm_type": "way",
"osm_id": "241764184",
"lat": "34.0116375",
"lon": "-118.3897425",
"display_name": "Jefferson Boulevard, Culver City, Los Angeles County, California, 90232, United States of America",
"address": {
"road": "Jefferson Boulevard",
"city": "Culver City",
"county": "Los Angeles County",
"state": "California",
"postcode": "90232",
"country": "United States of America",
"country_code": "us"
}
},
"modified": 1389590719230,
"open": true,
"ownerId": "LMcRz7sn74arDf7ZH",
"playerIds": [
"LMcRz7sn74arDf7ZH",
"E89pNHejdTXy8qfru",
"XD7c2DXhDJFjzte9Y",
"jCiQ2GrYHma5zZZwJ",
"yX5dMC4AZfuwRSv6P",
"z9FGXz5MsbjYs7qdR"
],
"playerNames": [
"aerospacemodeler",
"165",
"stanlyn",
"mollo",
"bergaelster1234",
"vacha2010"
],
"players": 6,
"questionCardsCount": 242,
"questionId": "NzfGbXrHqwCs3asSB",
"round": 0,
"title": "Game #1",
"userIds": [
"AYYkdSNqct5ziX7FK",
"XGdhT4oXyj57sycXC",
"xQsE864sxuwckBKsc",
"eKfwZ73qpX9Ranm57",
"hNfBxH2ES7iZdPTeN",
"hviHFh5LvzAyPNtED"
]
}
]
/api/hands?token=user_token
- Lists all the cards in the user's hands across all games.
[
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "96E38x7RdMM9tCZcc",
"_id": "WhcHrry4ENFN9m6qd"
},
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "bFXth56adBcZGhjYa",
"_id": "YEayzrxktJQ3RPJ7t"
},
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "3hm3LftXwy53DBF5m",
"_id": "YnPnwZdxYuXt6RSsp"
},
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "AeRJoZBq5pPK5ExYS",
"_id": "sbvakdHck8oNzffsC"
},
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "4tvJp23GN6Mv4Q55A",
"_id": "kL3JFiyjYzEj5ezyg"
},
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "j7r3Ws7ZDGHBp65iY",
"_id": "FErxy7sEEFd222hbe"
},
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "PbRiqRRR5pRb7iEDm",
"_id": "NvRS9ueRhG3TxdR5f"
},
{
"userId": "3wgLDA4WKzMc8q8co",
"gameId": "B4yfaCasQ8edNHP6m",
"playerId": "jSfbh3qMiGa6c6Bxa",
"cardId": "CnvBCGisRTefRmFiN",
"_id": "Fpuy8rTHfEnxooMdv"
}
]
/api/players?gameId=the_game_id&token=user_token
- Lists all the players in the specified game.
[
{
"name": "doctorpangloss",
"gameId": "6u2p5KwWZMjkbkj2b",
"userId": "3wgLDA4WKzMc8q8co",
"voted": 1389592720581,
"connected": true,
"location": "",
"open": true,
"_id": "y2Zx9GDkHP5i3pL4J"
},
{
"name": "gd",
"gameId": "6u2p5KwWZMjkbkj2b",
"userId": "Fu9jPvJbxXYP8JoWk",
"voted": 1389592678554,
"connected": true,
"location": "",
"open": true,
"_id": "uRrFW5tXueKGEWoKm"
},
{
"name": "lio",
"gameId": "6u2p5KwWZMjkbkj2b",
"userId": "LPcJ3Jtfcomm5TEnW",
"voted": 1389592678355,
"connected": true,
"location": "",
"open": true,
"_id": "rrYTXuf7yc6WADj59"
},
{
"name": "megawati",
"gameId": "6u2p5KwWZMjkbkj2b",
"userId": "SyiDEkWD9zHLtc9TE",
"voted": 1389592678300,
"connected": true,
"location": "",
"open": true,
"_id": "3NzmxArg8trjCPAzK"
},
{
"name": "freienwalde00",
"gameId": "6u2p5KwWZMjkbkj2b",
"userId": "q5GxrtrAvtEsCXgMC",
"voted": 1389592678502,
"connected": true,
"location": "",
"open": true,
"_id": "PTFwjWFLsJi7zC27z"
},
{
"name": "liebstadt2009",
"gameId": "6u2p5KwWZMjkbkj2b",
"userId": "xyfrGntGhxoMChymF",
"voted": 1389592678400,
"connected": true,
"location": "",
"open": true,
"_id": "PgqShZHojRMSzXuc8"
},
{
"name": "stingl",
"gameId": "6u2p5KwWZMjkbkj2b",
"userId": "y6Z5cHKo7FcwZvEzd",
"voted": 1389592678450,
"connected": true,
"location": "",
"open": true,
"_id": "M3MxwAyLj9C5oSXyo"
}
]
/api/submissions?token=user_token&gameId=game
- Lists all the answers currently pending to be judged.
[
{
"gameId": "smTZRDkrKAer27E8r",
"round": 0,
"answerId": "q9RDtZomN9PwioWBc",
"_id": "eBYmMGYTQtkkCjmRm"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 0,
"answerId": "gLozNmrbESvWPiPEm",
"_id": "6yjEm62k8i8GrKgNt"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 0,
"answerId": "w8mDTsjrCqSmsLoEB",
"_id": "QX3z64ER89e4XZxMM"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 0,
"answerId": "axmNuLo73j9GSkMZX",
"_id": "gi4j2xkLKSx6Xr6Ma"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 0,
"answerId": "iENLG2YXsnPpzXJK4",
"_id": "T7hA93YTggWJXnbTA"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 0,
"answerId": "hfpQKzhp2RX7vzPFC",
"_id": "TuJPn2YXdqdZYPieH"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 1,
"answerId": "KyhGpiBvnokabBmwb",
"_id": "xNesRh3HiW4fHzeu2"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 1,
"answerId": "E9xkSNA5sxf62mF77",
"_id": "cNLtfnpS7CKnJCW9D"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 1,
"answerId": "ShhKtXeg8KRCqHpyz",
"_id": "J7TmQ8Ec6Zqu9zC3E"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 1,
"answerId": "LTmK2CHTmnQkWHv2r",
"_id": "GCkEkLrK5Zx72wawD"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 1,
"answerId": "sP9GRFagRMqJytFBz",
"_id": "qqxqiLbfsPTx8AnTj"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 1,
"answerId": "NYYqXmJrNJDXF7P87",
"_id": "W7QSfBR95n2zfzjxd"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 2,
"answerId": "Di8rL3uCgfgNxFnEv",
"_id": "nRKwMhtA3sxbiEe9h"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 2,
"answerId": "xm5R7uhDxtP95dx6i",
"_id": "y5MZePFmuNmtBsHkz"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 2,
"answerId": "z83vHfcBF73KyryKH",
"_id": "wF5wi8jA5vC4NdRbk"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 2,
"answerId": "5vToPws9dEJbLAj7N",
"_id": "Z7yuZqghxCztE5ci4"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 2,
"answerId": "GKBBbMSvAe9wSDXBy",
"_id": "SRSukJfhvMg9yBFB4"
}
]
/api/votes?token=user_token&gameId=game_id
- Lists a history of all the judges votes. Used to calculate scores.
[
{
"gameId": "smTZRDkrKAer27E8r",
"round": 0,
"judgeId": "eGPmNhv7tHF7pDzmc",
"playerId": "KxPzF36StPZkd4b7h",
"questionId": "4zz8hq3t8PQNdoT4m",
"answerId": "w8mDTsjrCqSmsLoEB",
"_id": "KmxCBAcSevHmQCL6r"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 1,
"judgeId": "kLD6hjsrYsFHJGnwn",
"playerId": "KxPzF36StPZkd4b7h",
"questionId": "CL2GAsFd78q47r9bM",
"answerId": "LTmK2CHTmnQkWHv2r",
"_id": "zCZvQAokcpG5ejYgL"
},
{
"gameId": "smTZRDkrKAer27E8r",
"round": 2,
"judgeId": "c6PFDm3yyPbstrFDn",
"playerId": "kLD6hjsrYsFHJGnwn",
"questionId": "YiRs9MmCcmTtBJi9Z",
"answerId": "5vToPws9dEJbLAj7N",
"_id": "BAydmoPhTx4ThuW8F"
}
]
/api/inventories?token=user_token
- Lists all the cards the user owns. Represents a library, and not in use in PartyMode.
INVENTORY_ITEM_TYPE_CARD = 1;
[
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "2dGpvuBLHCDw8LjsH",
"quantity": 1,
"_id": "o77wdiHEFsjA7PLdj"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "2hYzeL7GtcxfSwwGd",
"quantity": 1,
"_id": "QHhM9NLseQ9EMrKke"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "2j3LX4HStveZCKF9c",
"quantity": 1,
"_id": "wjHwMKt6CDHdoankZ"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "2knYpJShMC629Qmvh",
"quantity": 1,
"_id": "rF3GBfT3h2AQundWP"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "3NahqHJ7Ybs536XNZ",
"quantity": 1,
"_id": "vEkqTNnMJPdYQwwNf"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "4HoK4RijoKWnXwibB",
"quantity": 1,
"_id": "7Qrc9b2DrJyerpkW7"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "53rikKi8h2yFEBwmJ",
"quantity": 1,
"_id": "pE5EvJXnwcF8rfSEM"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "62wdyr88ZEQd3bQsf",
"quantity": 1,
"_id": "9vNDcurpjXYebFXDE"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "6FPuPJYeeEnwhE24M",
"quantity": 1,
"_id": "45Xom6JvDfg3uay6K"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "7SEygFhJ9uFnLogZn",
"quantity": 1,
"_id": "q4bDJ9Hj2ujS85EjP"
},
{
"userId": "WtWcjhxwuheaLwWxv",
"itemType": 1,
"itemId": "84aTafPE7BK3tMZus",
"quantity": 1,
"_id": "zFW7wQ5ZBBzAZvzs5"
}
]