lomnom / PI

PI generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PI, the most ineffecient and beautiful pi calculator

Usage:

running:

python3 PI.py

controlling

Press s to save all calculated digits in "pi.txt".
Press p to pause calculation.
Press c to toggle between avg d/s, current d/s, avg s/d and current s/d.
Press q to go to the quit screen, where you can press y/n to save/not save and press c to cancel.

Screenshots:

Starting
Running
mode1
mode2
mode3
mode4
mode5
saving
exiting
done
result
cpu
In case you were wondering why there are 4 threads: Thread 1 is used for calculating pi, thread 2 is used for rendering pi, thread 3 is used to handle keys, main thread is left unused

Dependencies:

  • TERMINALFUNC
    The other dependencies are already dependencies of TERMINALFUNC

(TODO: STOP DEPENDING ON THE SHITTY LIBRARIES THAT I MADE WHEN I WAS STILL A NOOB)

About

PI generator


Languages

Language:Python 100.0%