Hoopscore is a free and open source app for keeping score of your basketball practices with your Apple Watch. The iPhone app also shows the session results with nice charts.
Open the Apple Watch app and create a new session. Then keep score of your shots types of layups, two and three points. Press the score button if you score a shoot. Press the miss button if you miss a shot.
The iPhone app will show you the results with two graphs, one is based on your shoot types and the other one based on your shoot results.
Please note that you cant make a use of this app if you dont have an Apple Watch.
You can find the full source of the app on its Github page:
https://github.com/cemolcay/Hoopscore