Git Product home page Git Product logo

bracketology's Introduction

  /######            /##           /##              /######    
 /##__  ##          | ##          | ##             /##__  ##   
| ##  \__/  /###### | ##  /###### | #######       | ##  \__/   
| ##       |____  ##| ## /##__  ##| ##__  ##      |  ######    
| ##        /#######| ##| ########| ##  \ ##       \____  ##   
| ##    ## /##__  ##| ##| ##_____/| ##  | ##       /##  \ ##   
|  ######/|  #######| ##|  #######| #######/      |  ######//##
 \______/  \_______/|__/ \_______/|_______/        \______/|__/

my personal website

bracketology's People

Contributors

karagenit avatar

Watchers

 avatar  avatar  avatar

bracketology's Issues

Admin Login/Authentication

Will need to hash password & compare to file contents, create a session with a flag set and check that session (and redirect if necessary) on any 'admin' page.

Data Analysis

Based on: knowledge, gender, age group.

Calculations: min, q1, median, q3, max, n, mean, stdev

Admin: Team Schema/Pairings

E.g. set which regions play each other first in the final four rounds, or maybe which seeds play each other.

Restructure Saved JSON

Instead of { south_0_0: "", south_0_1: "" } we should nest attributes, such as: { south: { round1: { index1: { ... }}} (of course, with arrays instead of hashes on the last two.

Assure Final Four Order

Right now, it just creates the final four buttons based on the indexes of the elite 8 selections - e.g. whatever team gets picked from elite 8 #s 0 or 1 is put in the Final Four #0 position. This is incorrect - we should make sure they go to the right regions.

Bracket OnClick Separate Text & Value

The displayed text of the buttons looks like <small>1 </small> Name (W-L), but we shouldn't be passing this as the value as well (which gets stored in the DB) - we want to make it store either just the name or possibly the DB index if we do #27

Scoring Function (PHP)

Compares two brackets (a student's and the master) and returns a score based on the scoring table found on the index page.

PHP Overhaul

Total cleanup needs to be done, particularly on the bracket generation code. I'd suggest we inline it, but we'll need to render brackets in the 'view-bracket' page and the 'master-bracket' page... so we'd need to update it to take a data param to fill in some later brackets if applicable.

Fix Database JSON Names

We've changed some of the team names in the main JSON file (teams.json) - this means brackets in the DB are different... we need to use some regex to replace these. Changes:

  • remove <small> tags (including the seed #)
  • convert Virginia (31-0) to Virginia (31-2)

Bracket Validation

OnSubmit JS which checks all hidden inputs to make sure they have a value should do the trick.

Mobile Support

Brackets don't look great on mobile. We could have a dynamic loading bracket that just shows the two teams, has them pick one, and loads the next pair (no long brackets) but this doesn't solve the displaying brackets issue.

Admin: Upload/Delete Files

I think he'd like files available to download on the 'analysis' page or something for a class activity, I'll need to get more info about this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.