keeakita / drinking-game Goto Github PK
View Code? Open in Web Editor NEWAn Angular app that uses localstorage for tracking your progress in a drinking game.
Home Page: https://poop.republican
An Angular app that uses localstorage for tracking your progress in a drinking game.
Home Page: https://poop.republican
Add a server such that when a certain percentage votes on a drink, it updates a shared global count
It'd be nice to have this so people can leave the page or refresh without their results being nuked
Have multiple JSON files the describe a game and let the user choose
From #14:
We could make those lists much more dynamic than they already are, and have the JSON files specify the titles, positions, and layouts of the lists themselves. That would allow us to do the tweaking to make it feel right without introducing a special case.
The current spec looks like this:
{
"id": "2016-10-19-presidential",
"title": "October 19th 2016 Presidential Debate",
"checklist": [
"string"
],
"everytime": {
"actions": [
"string",
],
"phrases": [
"string"
],
"shots": [
"string",
]
}
}
What we could do is maybe something like this:
id
s for the section,{
"id": "2016-10-19-presidential",
"title": "October 19th 2016 Presidential Debate",
"schema": "2",
"sections": {
"firsts": {
"counter": "Shots",
"type": "checkbox",
"heading": "Drink the first time",
"prompts": [
"string",
"string",
"string",
],
},
"actions": {
"counter": "Drinks",
"type": "counter",
"heading": "Everytime a candidate:",
"prompts": [
"string",
"string",
"string",
],
},
"phrases": {
"counter": "Drinks",
"type": "counter",
"heading": "Everytime a candidate says:",
"prompts": [
"string",
"string",
"string",
],
},
"shots": {
"counter": "Shots",
"type": "counter",
"heading": "Take a shot if:",
"prompts": [
"string",
"string",
"string",
],
}
},
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.