Skip to content

pharpala/8-Ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pool Game Application

Table of Contents

Technologies used

Python C Javascript HTML CSS SQLite

Introduction

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.

Features

  • 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.

Technology Stack

  • 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.

Screenshots

Here are some screenshots of the application:

Home Screen

Home Screen

Game Setup

Game Setup

Game Ending

Game End

Installation

To run this application, you will need the socslinux container. If you have it, run it and follow these steps:

  1. Clone the repository:

    git clone https://github.com/pharpala/8-Ball.git
    cd 8-ball
    cd src
  2. Compile the C code: Use the following command to compile the C code:

    make
  3. Attach Shared C library: Use the following command to attach the .so library to the program:

    export LD_LIBRARY_PATH=`pwd`
  4. Run the application:

    python server.py 5500

Usage

  1. Open your browser and go to http://localhost:5500.
  2. Enter the game name and player names when prompted.
  3. Start the game and enjoy! You can drag the cue ball to play.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.