A Typescript remake is now available here.
Same functionality with better and more readable code.
It is a classic 8-ball pool game. You can choose to play against a friend, or against an AI, with various difficulty levels.
Have fun, and good luck!