e2d2c7dd97df0d4f5738a75078b415c595cbe086
- 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>
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
-
Clone the repository:
git clone https://github.com/your-username/nhl-scoreboard.git -
Install dependencies:
pip install -r requirements.txt -
Run the application:
python run.py -
Open your web browser and navigate to
http://localhost:2897to 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
Languages
Python
79.5%
JavaScript
11.1%
CSS
7.2%
HTML
1.7%
Dockerfile
0.5%