Skip to main content

Terminal higher-or-lower NBA game scaffold

Project description

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hoop_higher-0.2.0.tar.gz (59.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hoop_higher-0.2.0-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

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

Hashes for hoop_higher-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3d2f6762f23a5f3aad9e3f911fa426149e0858cb859bf454f0531cc542e4fd9d
MD5 29b68a93a15a421550470cfd5bb83e77
BLAKE2b-256 8ed09b22933e5997800e238889ea3f361fecaa23df54434b1adf079ec7e39977

See more details on using hashes here.

Provenance

The following attestation bundles were made for hoop_higher-0.2.0.tar.gz:

Publisher: publish.yml on Davi-Gurgel/hoop-higher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for hoop_higher-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a88165a4d13ec439ef1fc880821efd27733cc1f0a06fc1657129690e2aff078
MD5 573ef89310f79b15f291cc17033597c7
BLAKE2b-256 7b6f7b1e9c7961f9f52dbf4c79fbb69809d5d998e2be603a815e285b19f98bae

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page