Welcome to the Pool Game Application! This is a full stack web application that simulates a pool game. The game features realistic physics, allowing players to enjoy a smooth and engaging experience.
- Realistic physics using a C library, allowing for precise ball movements and collision handling.
- Backend scripting and server handling with Python.
- SQLite database to store game and player information.
- Interactive front end built with HTML, CSS, and JavaScript.
- Easy-to-use interface for entering game and player information.
- C: Physics engine for the game.
- Python: Backend and scripting.
- Swig: To connect Python and C code.
- SQLite: Database management.
- JavaScript: Frontend interactivity.
- HTML/CSS: Frontend structure and styling.
Here are some screenshots of the application:
To run this application, you will need the socslinux container. If you have it, run it and follow these steps:
-
Clone the repository:
git clone https://github.com/pharpala/8-Ball.git cd 8-ball cd src
-
Compile the C code: Use the following command to compile the C code:
make
-
Attach Shared C library: Use the following command to attach the .so library to the program:
export LD_LIBRARY_PATH=`pwd`
-
Run the application:
python server.py 5500
- Open your browser and go to
http://localhost:5500
. - Enter the game name and player names when prompted.
- Start the game and enjoy! You can drag the cue ball to play.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.