jshemas / pingpong Goto Github PK
View Code? Open in Web Editor NEWA simple web app for Ping Pong scores.
License: MIT License
A simple web app for Ping Pong scores.
License: MIT License
I'm thinking that there should be a place that proposed code changes could be deployed for testing and demo purposes. Call it test.pingpong.com
or something.
Ideally these issues would be resolved before the swarm-coding lunch & learn, as reducing barriers to participation increases the likelihood of gaining another regular contributor or two.
When adding a new match, the player drop down list does not appear ordered. Can we order this list, possible alphabetically?
Could we send a Tweet each time a player overtakes another in the rankings?
Example text:
"Ranking update:
Player A is now in X place
Player B is now in Y place
Player C is now in Z place"
We would only list players who's rankings were effected by the recalculation of ranks for the most recent game. I'm assuming by posting a game, ranks are recalculated, as opposed to ranks recalculating at some other interval, or based on some other action.
It's a little hard to read the games on the player page quickly, since that player could be on either side. On the home page, it makes sense to show the game as it was entered, but on the player page, we should put that player always on the left.
Looks like we started using nconf
. This should be added to node_mondules. If we do add it, then we should update the rest of the dependencies.
Or, we should delete node_mondules from the repo.
Return the additional data in the JSON object.
Be sure not to remove the game, but instead set a "deleted" flag. Update the games queries found all over to filter out that deleted tab.
This should be an easy one, we may want to leave it for a new developer on the project.
Use facebook API or gravatar?
If we don't request email from players as they are added, we won't get email addresses, and the required games will not incorporate new players.
A match is a competition that is made up of games. The current notation is confusing.
We'll need to create a new schema for teams to point to a 'teams' collection
We need to create a few new routes:
TEAMS:
Write unit tests to test this logic. Don't start UI, that will be done in a different issue.
Can't determine what the current sort is, but I'm sure that ratings are what we want to sort by.
Dependent on #3
This page will show the details of a particular team, similar to the player detail page.
Add new Angular Routes in /js/app.js
Let's face it - we don't run the tests often enough. Maybe we can configure them to run automatically.
We need more validation around adding a match. Currently, you add matches in which individual games are ties, or even the entire match is a tie. For instance, you can enter the default scores, 11 to 11 in both games, and it works fine.
We should check that:
Mongoose has something called statics, so we could just add these to the match schema. I would like to see us, generally, move more of the logic to the schemas, since we're really doing operations against Matches and Players most of the time.
Something like:
Match.statics.validateGame = function(matchObj){
// Do validation
}
Match.statics.validateMatch = function(matchObj){
// Do validation
}
etc...
Instead of showing green on the side of the player who won, we can turn the entire row green for a win, or red for a loss.
It looks like our Automated Tests are failing. I started looking into this and it seems that the tests that use mongo calls never get a return from the database. (Not even an error!)
I'm wondering if this is a problem with my local database or not. Can someone verified?
This will be useful if we want to create a page which shows the history of deleting games. That way if someone is going in and removing their losses, it will be visible.
Self explanitory
Maybe a provisional section until 5 games played? Or maybe 8 games?
description
Add new Angular Routes:
This page will be similar to the players list page, and will list all teams with links to their profiles.
Start with new Angular Routes in /js/app.js
This page will show the details of a particular matchup between two teams. Similar to the player match detail page.
Add new Angular Routes in /js/app.js
This is similar to the listing page for player matches but would be for team matches.
Start with new Angular Routes in /js/app.js
Also display the date/time on the games page.
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.