I'm currently in the process of making a scoreboard for my game. One of things I would like to display is the players accuracy in the amount of hits they had in game. However, I have never done this before and I've no idea how to go about doing this.
Is there a commonly used algorithm out there that can help me calculate this, or has someone found a way to calculate this fairly easily?
Any help with this would be appreciated.