#!/usr/bin/env -S uv run --script

# /// script
# requires-python = '==3.15.*'
# dependencies = ['whatsnewt']
#
# [tool.uv.sources]
# whatsnewt = { path = '.', editable = true }
# ///

"""Play the game, on the interpreter the game is about.

uv reads the block above, fetches CPython 3.15 if this machine has not got one,
installs this checkout and its dependencies into a cached environment, and runs
the result.  Nothing needs to be installed first and no virtual environment needs
to be activated.

Three details worth knowing:

* The source path is relative to this file rather than to the working directory,
  so ./play works from anywhere.
* The checkout is installed editable, so this runs your working tree and not a
  snapshot of it.
* The pin is ==3.15.* rather than >=3.15 on purpose.  The game is *about* 3.15,
  and a future 3.16 would happily run it while quietly no longer demonstrating
  anything new.
"""

import sys

from whatsnewt.__main__ import main


sys.exit(main())
