The Pool Simulator is a Python application that simulates the physics of a pool game. It provides a realistic environment for users to interact with virtual pool balls on a pool table, allowing for the exploration of dynamics, collisions, and forces.
- Realistic physics calculations for ball movement and interactions.
- User-friendly interface for simulating pool games.
- Modular design with separate components for physics, geometry, and utilities.
pool-simulator
├── src
│ ├── pool_simulator
│ │ ├── __init__.py
│ │ ├── main.py
│ │ ├── simulator.py
│ │ ├── physics
│ │ │ ├── __init__.py
│ │ │ ├── dynamics.py
│ │ │ ├── collisions.py
│ │ │ └── forces.py
│ │ ├── geometry
│ │ │ ├── __init__.py
│ │ │ ├── ball.py
│ │ │ └── table.py
│ │ └── utils
│ │ ├── __init__.py
│ │ └── helpers.py
│ └── tests
│ ├── __init__.py
│ ├── test_dynamics.py
│ └── test_collisions.py
├── pyproject.toml
├── requirements.txt
├── .gitignore
└── README.md
To set up the project, clone the repository and install the required dependencies:
git clone <repository-url>
cd pool-simulator
pip install -r requirements.txtTo run the pool simulator, execute the following command:
python src/pool_simulator/main.pyContributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.