josh e2d2c7dd97
All checks were successful
CI / Lint (push) Successful in 6s
CI / Test (push) Successful in 6s
CI / Build & Push (push) Successful in 15s
feat: overhaul hype scoring algorithm
- Period base: playoff OT escalates indefinitely (P4=600, P5=750…),
  reg season P4=5-min OT (600), P5=shootout (700)
- Time priority range increased (max ~300 vs old ~120), calibrated
  to period length so 5-min reg season OT reads correctly
- Matchup multiplier inverted: higher period = less weight (any OT
  is exciting regardless of teams)
- Replace unconditional score_total with closeness bonus: rewards
  tight games regardless of goal volume (5-4 == 1-0 at same diff)
- Power play bonus: 30 (P1/P2) → 50/100/150 (P3 by time) → 200 (OT)
- Comeback bonus: one-time pulse (+50/75/100 by period) when trailing
  team scores to within 2 goals; keyed on team names, clears after
  firing, skips intermission

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-29 14:46:10 -04:00
2026-03-29 14:46:10 -04:00
2024-02-19 01:20:56 -05:00
2026-03-29 09:20:21 -04:00

NHL Scoreboard Web App

This web application displays live NHL game scores, team statistics, and game states in real-time. It retrieves data from the NHL API and presents it in a user-friendly interface.

Features

  • Displays live NHL game scores.
  • Sorts games based on priority to highlight the most exciting matchups.
  • Responsive design for desktop and mobile devices.

Technologies Used

  • Python: Backend scripting language.
  • Flask: Web framework for Python.
  • HTML/CSS: Frontend markup and styling.
  • JavaScript: Client-side scripting for auto-refresh functionality.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/nhl-scoreboard.git
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Run the application:

    python run.py
    
  4. Open your web browser and navigate to http://localhost:2897 to view the scoreboard.

Usage

  • The scoreboard will display live NHL game scores, team statistics, and game states.
  • Games are sorted based on priority to highlight the most exciting matchups.
  • The page updates automatically every 10 seconds to show the latest data.
  • Responsive design ensures a seamless experience on desktop and mobile devices.

Credits

Special thanks to the NHL for providing the data through their API.

License

This project is licensed under the MIT License.

Description
NHL Scoreboard Without Fluff
Readme 332 KiB
Languages
Python 79.5%
JavaScript 11.1%
CSS 7.2%
HTML 1.7%
Dockerfile 0.5%