ekiefl / pooltool

A sandbox billiards game that emphasizes realistic physics
https://pooltool.readthedocs.io
Apache License 2.0
226 stars 35 forks source link

Api redesign #120

Closed ekiefl closed 7 months ago

ekiefl commented 7 months ago

Before this, the top-level API was an unorganized collection of objects. Now, members who are graduated to the top-level API are picked more stringently, and lesser used members (who are nonetheless important) have to be accessed from their submodules/subpackages.

This API is more discerning about what makes it to the top-level API, while also providing better access to lesser used members. I.e. import pooltool as pt is sufficient for accessing nearly every member in the codebase.