Skip to main content

Hoop Higher

PyPI Python 3.13+

Hoop Higher gameplay

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
T Toggle light/dark theme

Hoop Higher starts in its dark theme. Press T on any screen to switch between the dark and light palettes; the choice is saved and restored on the next run.

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 your platform's per-user data directory (for example, ~/Library/Application Support/hoop-higher/hoophigher.db on macOS). Existing var/hoophigher.db databases remain in use so prior data is preserved. To use another location, set HOOPHIGHER_DATABASE_URL to a SQLite URL, such as sqlite:////absolute/path/to/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.

Metadata

Release files for hoop-higher 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hoop-higher 0.3.0
File Size Uploaded
hoop_higher-0.3.0.tar.gz 84.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hoop-higher 0.3.0
File Interpreter ABI Platform
hoop_higher-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 156.6 kB

Release files / hoop_higher-0.3.0.tar.gz

Download URL hoop_higher-0.3.0.tar.gz
Size 84.1 kB
Tags Source
SHA-256 checksum
How to use checksums
80a5ce063645b464a1cc8d90fad86649e78d93f999dc8a8946a233d02d00ee1e
BLAKE2b-256 checksum
How to use checksums
7f63199ce8b2234c26f8c0967e3c843751f7c5580fc107167e1a2711db411f11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release files / hoop_higher-0.3.0-py3-none-any.whl

Download URL hoop_higher-0.3.0-py3-none-any.whl
Size 72.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06756a492175f7eaaad42987c855ad96b59901e22333ccba0feb99b64bf0d3d8
BLAKE2b-256 checksum
How to use checksums
d6d872349e592212631a29cd293b147b480fcfe6439878a657c93897ed5f661a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page