Terminal higher-or-lower NBA game scaffold
Project description
Hoop Higher
Hoop Higher is a terminal game for NBA fans: you see one player's points from an NBA box score, then guess whether another player scored higher or lower.
It is quick to start, easy to play from the keyboard, and built around short runs that test your NBA instincts one matchup at a time.
Play
Run it without installing:
uvx hoop-higher
Or install the command:
uv tool install hoop-higher
hoop-higher
hoop-higher is the only supported command name.
How It Works
Each question gives you a player and their point total. Your job is to decide whether the next player scored more or fewer points in that same game context.
After every guess, Hoop Higher reveals the answer, updates your score, and moves to the next comparison. Runs are saved locally so you can track your best scores, streaks, and overall stats.
Game Modes
| Mode | What to expect |
|---|---|
| Endless | Keep playing through misses. Wrong answers cost points, but the run continues. |
| Arcade | One miss ends the run. Higher stakes, higher reward. |
| Historical | Play from randomly sampled historical NBA dates. |
Controls
| Key | Action |
|---|---|
H |
Guess higher |
L |
Guess lower |
Left / Right |
Move between choices |
Enter |
Select or confirm |
Esc |
Go back |
Q |
Quit |
1, 2, 3 |
Pick a game mode |
Data
By default, Hoop Higher uses real NBA game data through nba_api and caches results locally so future runs are faster.
If the live NBA data source is slow or unavailable, you can still try the game instantly with mock data:
HOOPHIGHER_STATS_PROVIDER=mock uvx hoop-higher
Local scores, stats, and cached games are stored in var/hoophigher.db.
From Source
git clone https://github.com/Davi-Gurgel/hoop-higher.git
cd hoop-higher
uv sync --all-groups
uv run hoop-higher
Run tests:
uv run pytest
License
No license file is currently included in this repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hoop_higher-0.2.0.tar.gz.
File metadata
- Download URL: hoop_higher-0.2.0.tar.gz
- Upload date:
- Size: 59.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d2f6762f23a5f3aad9e3f911fa426149e0858cb859bf454f0531cc542e4fd9d
|
|
| MD5 |
29b68a93a15a421550470cfd5bb83e77
|
|
| BLAKE2b-256 |
8ed09b22933e5997800e238889ea3f361fecaa23df54434b1adf079ec7e39977
|
Provenance
The following attestation bundles were made for hoop_higher-0.2.0.tar.gz:
Publisher:
publish.yml on Davi-Gurgel/hoop-higher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hoop_higher-0.2.0.tar.gz -
Subject digest:
3d2f6762f23a5f3aad9e3f911fa426149e0858cb859bf454f0531cc542e4fd9d - Sigstore transparency entry: 1363868432
- Sigstore integration time:
-
Permalink:
Davi-Gurgel/hoop-higher@47609081cff3a9f1ee12d68b31a3e60f110cf890 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Davi-Gurgel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@47609081cff3a9f1ee12d68b31a3e60f110cf890 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hoop_higher-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hoop_higher-0.2.0-py3-none-any.whl
- Upload date:
- Size: 50.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a88165a4d13ec439ef1fc880821efd27733cc1f0a06fc1657129690e2aff078
|
|
| MD5 |
573ef89310f79b15f291cc17033597c7
|
|
| BLAKE2b-256 |
7b6f7b1e9c7961f9f52dbf4c79fbb69809d5d998e2be603a815e285b19f98bae
|
Provenance
The following attestation bundles were made for hoop_higher-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on Davi-Gurgel/hoop-higher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hoop_higher-0.2.0-py3-none-any.whl -
Subject digest:
2a88165a4d13ec439ef1fc880821efd27733cc1f0a06fc1657129690e2aff078 - Sigstore transparency entry: 1363868434
- Sigstore integration time:
-
Permalink:
Davi-Gurgel/hoop-higher@47609081cff3a9f1ee12d68b31a3e60f110cf890 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Davi-Gurgel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@47609081cff3a9f1ee12d68b31a3e60f110cf890 -
Trigger Event:
push
-
Statement type: