Author Topic: [ENDED] Code Golf Contest #1 (thanks for the many submissions!)  (Read 40136 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Code Golf Contest #1
« Reply #30 on: July 17, 2014, 01:34:31 am »
Yes; that is after subtracting the VAT entry size.

I was actually using both the hints you gave. Looks like there's something else I could optimize... I won't discuss it too much until I submit it though.

EDIT: 54 bytes, still working...
« Last Edit: July 17, 2014, 01:47:44 am by Deep Thought »




Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Code Golf Contest #1
« Reply #31 on: July 17, 2014, 11:14:24 am »
Shouldn't unhappy be sad?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Code Golf Contest #1
« Reply #32 on: July 17, 2014, 11:22:32 am »
ASMists said they prefer "unhappy" because it saves space and JWinslow23 allowed "unhappy" as a valid answer for "sad".
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Code Golf Contest #1
« Reply #33 on: July 17, 2014, 11:24:51 am »
Ah, thanks for informing me

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Code Golf Contest #1
« Reply #34 on: July 18, 2014, 12:10:43 pm »
For TI-BASIC, does it matter if Done is displayed in one case and not the other? If not, then I have a 47-byte program. If so, then it's 48.
It depends which OS I think, because on OS 2.53MP and higher, it's impossible to hide the "Done" message. Even if you end your program with Output(1,1," it will still show up regardless.

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Code Golf Contest #1
« Reply #35 on: July 18, 2014, 05:34:44 pm »
ASMists said they prefer "unhappy" because it saves space and JWinslow23 allowed "unhappy" as a valid answer for "sad".

Now that I think about it: in every language?I 'm not sure about TIBASIC

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Code Golf Contest #1
« Reply #36 on: July 18, 2014, 05:36:21 pm »
3 days left! Submit your programs fast!

Princetonlion.tibd, either of SAD or UNHAPPY are allowed. Whatever is more golfed.

Also, I want clarification on who should choose problems for subsequent competitions. Should I choose, or should the winner choose?
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Code Golf Contest #1
« Reply #37 on: July 18, 2014, 05:37:26 pm »
Princetonlion.tibd, either of SAD or UNHAPPY are allowed. Whatever is more golfed.

I'll join the next one then. seems good.



Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Code Golf Contest #1 (thanks for the many submissions!)
« Reply #38 on: July 18, 2014, 09:28:08 pm »
Unfortunately I doubt such a solution would be smaller in python, since getting logarithms takes:

import math
OR
from math import *

for the first, log is math.log(), but for the second it is just log(). either way, it takes either 22 or 24 bytes for ONE log call.


Also, for python I can't think of a way to save with "UN" and "HAPPY" since that would require a variable.


I'm working on a new python version that might save a few bytes, and changes to "UNHAPPY" :P
« Last Edit: July 18, 2014, 09:52:16 pm by willrandship »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Code Golf Contest #1 (thanks for the many submissions!)
« Reply #39 on: July 19, 2014, 12:09:32 am »
Glad this mini contest was successful by the way :D (well from what I see so far from the many participants)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Code Golf Contest #1 (thanks for the many submissions!)
« Reply #40 on: July 19, 2014, 12:16:10 am »
Having the winner choose would be more interesting in my opinion, since that leads to more of a variety, and provides a prize.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Code Golf Contest #1 (thanks for the many submissions!)
« Reply #41 on: July 19, 2014, 03:40:06 am »
I'd say that the winner chooses who chooses :P
That means a prize for the winner as willrandship said, but that also means that if the winner has no idea but someone has, that person can provide an idea too.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Code Golf Contest #1 (thanks for the many submissions!)
« Reply #42 on: July 19, 2014, 11:44:38 am »
After watching this contest, I have decided to do the next one.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Code Golf Contest #1 (thanks for the many submissions!)
« Reply #43 on: July 19, 2014, 01:05:55 pm »
Thanks, everyone, for participating in this contest! You guys are the best! :thumbsup:


Oh, and the winner shall decide the next challenge (unless he can't think of one and post it by the end of Monday, for which case I will submit a challenge. Remember, a week goes by too fast to delay!). Try to think of one tomorrow, everyone.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Code Golf Contest #1 (thanks for the many submissions!)
« Reply #44 on: July 19, 2014, 02:03:04 pm »
Sorry I didn't really read all, but are people compared by language or in a single batch (yeah I know this sounds stupid) ?