Posted 15 March 2013 - 09:42 AM
In honor of pi day (3/14) and inspired by a program here, I created this program that calculates pi using a circle in a string.
(note: the circle looks flat in-game and tall in pastebin because zeroes in CC are shorter than zeroes in NP++, which are shorter than zeroes in pastebin)
If you want, you can try different circles to prove it works. I used this to create my circles. Just remember to set the 'y' to 2 and 'z' to 1 then choose any of the circles. Use spaces for the white rectangles and '0's for the red rectangles
Code:
(note: the circle looks flat in-game and tall in pastebin because zeroes in CC are shorter than zeroes in NP++, which are shorter than zeroes in pastebin)
If you want, you can try different circles to prove it works. I used this to create my circles. Just remember to set the 'y' to 2 and 'z' to 1 then choose any of the circles. Use spaces for the white rectangles and '0's for the red rectangles
Code:
pastebin get k6f2C5pw pi