Implementation of 3D snooker simulator