Skip to content

Python simulation of a pool game, created using the PyGame library. Handles ball-ball and ball-rail collisions and friction.

Notifications You must be signed in to change notification settings

tbeidlershenk/billiards-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Billiards Simulation

  • Python simulation of a pool game, created using the PyGame library.
  • Handles ball-ball and ball-rail linear collisions and friction from the table surface.
  • Pocket collisions remove balls from the table.

Controls

  • Hit spacebar to fire cue ball toward mouse position, at a velocity proportional to your mouse's distance from the cue ball.
  • Hit r key to reset the simulation.

Running

  • In a terminal: python3 SimTest.py

About

Python simulation of a pool game, created using the PyGame library. Handles ball-ball and ball-rail collisions and friction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages