Coder Social home page Coder Social logo

Comments (3)

mileswwatkins avatar mileswwatkins commented on July 20, 2024

Interface design/goal:

> scores
Include which league you want scores for, eg `scores mlb`. Available leagues: mlb, nba, nfl, college football.

> scores mlb
Include a team name to see their recent games, eg `scores mlb florida` or `scores mlb giants`

> scores mlb red sox
Oct 22 @ HOU, top 3rd
BOS  0 0 0 - - - - - -  |  0 1 1
HOU  1 0 - - - - - - -  |  1 2 0

Oct 20 @ BOS
HOU  0 0 0 0 0 0 0 0 0  |  0 2 0
BOS  1 0 0 0 0 1 0 3 •  |  5 10 0

> scores nfl lions
Dec 26 @ ATL
DET  3 7 3 3  |  16
ATL  0 10 3 7  |  20

> scores nba thunder
Jan 24 @ OKC, final
CHI  35 23 34 19  |  111
OKC  27 21 30 32  |  110

Jan 22 @ CLE
OKC  24 22 37 24  |  107
CLE  32 24 29 17  |  102

Difficulties:

  • How do we deal with leagues that might have over 100 games on a single day (eg, NCAA Division 1 football)? This makes listing all games for a specific day infeasible (to a certain extent even if just top-25 games are listed). Should we just not deal with NCAA sports, at least to start with?
  • Do we use a different, but specialized, API for each sport/league? Or a centralized API (like API-SPORTS or MySportsFeeds) that serves all sports but not as well/neatly?
  • For games that are happening today, we must include final or which inning/quarter/half they're in, to contextualize potentially-incomplete scores.

from mouse.

mileswwatkins avatar mileswwatkins commented on July 20, 2024

An alternative would be to skip box scores and specific teams (too hard to handle synonyms/nicknames/spelling?) and just do the most recent scores. Basically, the information that ESPN'd be showing in their ticker at the bottom of their programming, eg:

> scores mlb
ARI 3 COL 2, btm 5
BOS 9 NYY 1
LAA 0 OAK 1
…

> scores college football
UNC 58 WAKE 55, Q4
PITT 54 DUKE 29
OHIOST 26 NEB 17
UGA 43 MIZZOU 6
...

Easier. But OTOH realistically a user generally cares about a single team, or maybe at most a single division (eg, MLB AL East) or conference (eg, NCAA football Big 10), so maybe the interface should focus on that?

from mouse.

mileswwatkins avatar mileswwatkins commented on July 20, 2024

Could try taking inspiration from https://plaintextsports.com

from mouse.

Related Issues (17)

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.