So I'm developing my game, and I can't seem to figure out a proper "accuracy" formula.
The ball hitting the paddle would be a hit, and the ball hitting a red bar would be a miss.
accuracy = ini_read_real("stats","voidhits",0)/ini_read_real("stats","paddlehits",0)*100
is the closest I've come to getting it, but it's reversed.
Help. D: