8-Ball Pool
By Dheer Banker and Tanmay Patil
Controls:
Move mouse to aim
W : Increase Hit power
S : Decrease Hit power
Enter : Hit cue ball
Left click : Fix the position of cue ball (when having option to move it)
Play the Game!
Rules:
The game starts with Solid's turn.
If the cue ball is potted, it is a foul. Theother player is allowed to position the cue ball on the next move.
If a player(say stripes), pots the 8 ball before potting the other balls(stripes), the other player( solids) wins.
If no balls are potted during a player's turn, their turn ends.
If a player pots more of his/her own balls than the opponent's during his/her turn, then the player gets another chance. Otherwise, their turn ends.
Salient Features:
NO third-party libraries used (completely Vanilla JS)
Realistic playing experience
Highly re-usable code, ensuring the Separation of Concerns
Adapts to all screen sizes automatically.