All Projects → max-kov → pool

max-kov / pool

Licence: MIT license
A pool game written in python and pygame.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to pool

python-kaynaklari
Python Türkiye Facebook sayfasında başlatılan projenin yeni sayfası
Stars: ✭ 30 (-9.09%)
Mutual labels:  pygame
WeatherPi TFT
a weather display for a raspberry pi and a TFT display written in python3 and pygame
Stars: ✭ 66 (+100%)
Mutual labels:  pygame
workerpool
A workerpool that can get expanded & shrink dynamically.
Stars: ✭ 55 (+66.67%)
Mutual labels:  pool
PySprint
Recreation of the Atari ST port of Super Sprint with Pygame
Stars: ✭ 19 (-42.42%)
Mutual labels:  pygame
Python-Games
A collection of small python games made by me using pygame and tkinter libraries
Stars: ✭ 121 (+266.67%)
Mutual labels:  pygame
L3-37
Yet another Tokio connection pooler. May cause robot uprising.
Stars: ✭ 53 (+60.61%)
Mutual labels:  pool
Sfpowerkit
A Salesforce DX Plugin with multiple functionalities aimed at improving development and operational workflows
Stars: ✭ 214 (+548.48%)
Mutual labels:  pool
pool
🍭🍭🍭 golang advanced connect pool !!!
Stars: ✭ 18 (-45.45%)
Mutual labels:  pool
minesweeper
💣 The classic minesweeper game in python
Stars: ✭ 34 (+3.03%)
Mutual labels:  pygame
midiGenerator
Generate midi file with deep neural network 🎶
Stars: ✭ 30 (-9.09%)
Mutual labels:  pygame
Sudoku-Solver
🎯 This Python-based Sudoku Solver utilizes the PyGame Library and Backtracking Algorithm to visualize and solve Sudoku puzzles efficiently. With its intuitive interface, users can input and interact with the Sudoku board, allowing for a seamless solving experience.
Stars: ✭ 51 (+54.55%)
Mutual labels:  pygame
neth-proxy
Stratum <-> Stratum Proxy and optimizer for ethminer
Stars: ✭ 35 (+6.06%)
Mutual labels:  pool
CryptoProfitSwitcher
Extensible profit switcher for crypto coins and algorithms
Stars: ✭ 49 (+48.48%)
Mutual labels:  pool
python-PooledProcessMixIn
Fast Concurrent Pool of preforked-processes and threads MixIn for python's socket server
Stars: ✭ 31 (-6.06%)
Mutual labels:  pool
finance-project-ddd
Projeto financeiro usando domain driven design, tdd, arquitetura hexagonal e solid
Stars: ✭ 67 (+103.03%)
Mutual labels:  pool
Worker pool
Erlang worker pool
Stars: ✭ 239 (+624.24%)
Mutual labels:  pool
ramos
Generic backend pool
Stars: ✭ 30 (-9.09%)
Mutual labels:  pool
pygame-car-tutorial
rmgi.blog./pygame-2d-car-tutorial.html
Stars: ✭ 30 (-9.09%)
Mutual labels:  pygame
go-pool
A better Generic Pool (sync.Pool)
Stars: ✭ 42 (+27.27%)
Mutual labels:  pool
kylin-jdbc-pool
better performance for kylin query
Stars: ✭ 15 (-54.55%)
Mutual labels:  pool

Pool

build status

A pool game written entirely in python!

Alt text

Features

  • Realistic collisions based on a two-dimensional Newtonian model.
  • Simple configuration file (config.py) with many changeable options like ball size, ball colour, cue length/thickness and many more.
  • Algorithms which render ball sprites using rotation matrices.
  • Tests for collision functions and other math related functions.
  • A small and configurable game menu.

Installing

Dependencies

The pool game requires python 3.5 with modules which are listed in requirements.txt .

Installing on debian-based linux distributions

Install python 3.5 with pip, venv and pygame dependencies

sudo apt-get build-dep python-pygame
sudo apt-get install python-dev python3 python3-pip python3-venv

Then, clone the github code and run the game using run.sh, which will setup a virtual python environment with the aforementioned modules.

git clone git://github.com/max-kov/pool.git
cd pool
./run.sh

If the pygame installation fails, it's most likely due to apt not having any URIs in sources.list file. To fix execute

sudo sed -i -- 's/#deb-src/deb-src/g' /etc/apt/sources.list && sudo sed -i -- 's/# deb-src/deb-src/g' /etc/apt/sources.list
sudo apt-get update

and run the installation procedure again.

Windows

Download python 3.5 with pip then add python to the path variable and run

python -m pip install -r requirements.txt

in the administrator cmd in the game folder to install the dependencies. Finally, start main.py to run the game. You might have to use python3 instead of python depending if you have python2 installed. To check that you are using the right vesrion, write python in the console to see what version is used.

Running the tests

You can always see the results of the latest build here. If you want to run the tests yourself, we will need extra modules. (On linux) Run

pip3 install -r test_requirements.txt

in the game folder to install the testing modules. To run the tests write

PYTHONPATH=./pool pytest tests/

You can also check test coverage by executing

PYTHONPATH=./pool pytest --cov=. tests/

That will analyse which files and which lines of code were executed by the tests..coveragerc will prevent the module from analysing test files as well.

Built With

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].