Alternatively, join us on Discord.

CWick Contest #4: The Tau Problem

Started by Juju, 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:
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!!  ;)
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

SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

p2

why isn't there nyone backing ETA as the one true constant...? ???
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

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...

...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.

Juju

March 14, 2017, 02:59:38 am #22 Last Edit: March 14, 2017, 03:02:15 am by Juju
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.
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

DJ Omnimaga


Juju

June 05, 2017, 04:31:49 am #24 Last Edit: June 05, 2017, 04:50:12 am by Juju
@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
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!

DJ Omnimaga


kotu

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

go @Juju !!! well done!
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:
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 :(

Powered by EzPortal