Join us on Discord!
You can help CodeWalrus stay online by donating here.

CWick Contest #4: The Tau Problem

Started by Yuki, February 28, 2017, 05:03:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

p2

hehe force the tau beliefers to use a pi formula  :thumbsup:
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

kotu

:trollface:

const double PI_DIV_2   = 1.5707963267948966192313216916398;
const double PI                = 3.1415926535897932384626433832795;
const double PI_MUL_2 = 6.283185307179586476925286766559;

the ultimate solution!!  ;)
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

JWinslow23

Quote from: kotu on March 03, 2017, 12:01:03 PM
:trollface:

const double PI_DIV_2   = 1.5707963267948966192313216916398;
const double PI                = 3.1415926535897932384626433832795;
const double PI_MUL_2 = 6.283185307179586476925286766559;

the ultimate solution!!  ;)
You mean ETA, PI, and TAU. ;)

kotu

  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

p2

why isn't there nyone backing ETA as the one true constant...? ???
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

kotu

  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

JWinslow23

Quote from: p2 on March 03, 2017, 12:24:59 PM
why isn't there nyone backing ETA as the one true constant...? ???
There is...
https://www.youtube.com/watch?v=1qpVdwizdvI
...but these people are rare to find, and the idea of eta being the "true" circle constant largely hinges on the argument that the right angle should be the fundamental unit, instead of the area of a unit circle with pi, or the circumference of a unit circle with tau. Which, as you know, I think is silly.

Yuki

#22
Reminder that the contest ends tonight. I won't mind if anyone's late due to timezones or anything, but make sure your entry is submitted by email before I process the results. I'll show the results tomorrow on Pi (or Tau/2) Day live on YouTube or Twitch, stay tuned.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Yuki

#24
@JWinslow23 wins, stay tuned for contest #5.

JWinslow23

- Code is mostly unreadable and obfuscated (+)
- Uses clever tricks with integers (+)
- Sometimes misses leading 0's (-)
- Program is less than 1K (+)
- 9/10

gameblabla

- Uses an obscure console (+)
- Tau fits on 2 screens (+)
- Tau is stored in variables, then compressed and finally uncompressed for seemingly no reason (-)
- Source code is very readable (-)
- 6/10
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

JWinslow23

Actually, the "sometimes missing leading 0's" is not a mistake. My program basically took numbers in base 100 and displayed them, and the numbers in question were digits of tau. Leading 0's on numbers seemed to be impossible to display, so I just trailed the previous numbers with 0 and then continued. All the digits are correct and in the right order.

For example:

8125724179
972560696
5068423413

If I'd have done that "optimally" and made 9725606965 the second line, the third line would have a leading 0 (which I couldn't figure out how to display).

Hope it makes sense now!

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

kotu

teach him how to program in a professional environment why don't ya!!

go @Juju !!! well done!
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

E37

If no one looks at the source, you could just display the first ~15 digits and just print random numbers after that :trollface:
  • Consoles, mobile devices and vintage computers owned: Ti83,Ti84!
I've never finished a project, there is always a way to improve!
What's my calc's name? Convert $37 to decimal. Look up that element in the periodic table. Then take the abbreviation of that element and you have it!
Look! A slime!    <(^.^)>

gameblabla

I did not know that deliberately obfuscating the code was a feature.
Richard Stallman told me otherwise :(
  • Calculators owned: None (used to own an Nspire and TI-89)

Powered by EzPortal