drafthacker's People
drafthacker's Issues
Select boxes
Use this -- http://harvesthq.github.com/chosen/
Links picks to slots
Might need to edit the schema and associations to do this
Change the logo attribute of Teams to 'text' in the db
Long urls cause the system to crash
Get the JSON from the API
Search fields
Maybe combined with the select boxes?
Chart pick probability distributions based on ADP
Based on a players average pick, high and low, we can make certain statistical assumptions about when that player will get selected. The distribution can be mapped to picks and thus can we can calculate the probability that a player will be drafted at any given pick in the draft.
Design a UI to display this info
D3!!!!!!!!!!!!!!!!!!!!11
next_pick.number
in the last round, next pick is nil, which means that the number method errors out
Get cron jobs working with audit logs
Make league update more efficient
League should check the api to see if the data is new, and should update only if the data is new. This is dependent on the upsert process getting worked out.
Drafted players should have a 0% chance of being available at your next turn
self explanatory.
Build it
Links players to picks
Batch inserts
Nested attributes inserts atomically, which is bad for us. Get batch inserts working.
Replace search logic with regex
Set up player cron job
24 hours?
Depends on if we want news/etc to be up to date
Moar Ajax
Move the pick-team link functionality from the link class to the team class
For efficiency's sake- In pick it will make (14*number of teams) DB calls to find its team individually. If it were in the team class, it would only make (number of teams) calls to the DB and return the entire array of picks.
I would also love to make it an after_commit callback so that it's not dependent on the order of the megahash, but when it was an after_commit in the pick class it basically crashed rails server.
Set up draft cron job
Maybe every 5 seconds when draft_status == active? It might be more efficient if it can be scheduled for the draft date/time.
We can tune it after we get it working
Assign pick probabilities to the players
Chances should update after every pick
Get the JSON and convert it
SimpleCov and pushing
It looks like every time we use simplecov and then pull, we will get merge conflicts. I don't know if there is an easy way to get by it but I have been using git rm on the coverage file before every commit, because every time you run the tests it gets regenerated.
Upserts
Allow the data to update or insert if not found
Pull the data from the API
Update the existing player objects with the ADP data
Connect it to the backend
Come up with a basic formula
Make draft update more efficient
Update should check and see if there is new data, and only return the new players
Update the players from the Cbs module
Error Handling for before the draft starts
Currently, the @players variable is nil before the draft starts so we need some type of error handling to stop it from crashing when it does @players.each
upsert
finish fixing upsert module
fix slots
fix picks
fix rounds!
Ajax it
Get rid of the embedded hashes in the model attributes
Starting with the creation an owner object
Add fields to player model
Links slots to players
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.