Dart simulation that throws dart at a circle and square (Circle hits also hits square) By dividing circle hits by square hits (and multiplying by 4), You get pi (And tau if you use 8x instead of 4x). Formula: pi = (circle hits / square hits)*4, tau = (circle hits / square hits)*8