How To Play?

First player starts the game by using coordinates of the player and the hoop in order to find the line equation between player and the hoop. The equation must be in the format of y=mx+b. Then they hit the "Atış" button to fire the ball. If the equation is correct, the ball moves towards the hoop, and a green text that says "Basket" appears. Also the player wins a point for the basket. And the winning player continues the game by hitting the "Soru" button which creates a new line. If the player can not write the correct equation, then it will be other player's turn. The one who collects 30 points wins the game.

Basketball Game