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

0 Members and 2 Guests are viewing this topic.

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 #60 on: July 22, 2014, 11:33:51 am »
OK, so I have another challenge (the only submitted challenge).

See this thread for the challenge. Move all code golf discussion there, as well.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: [ENDED] Code Golf Contest #1 (thanks for the many submissions!)
« Reply #61 on: June 11, 2015, 06:07:38 pm »
It looks like we've reached a consensus that, with the [ENDED] tag to clear things up, on-topic necroposting is allowed for after-the-fact optimizations or programming/golf tips. Therefore:

The only optimization I see in the top two TI-BASIC solutions is that on a MathPrint calculator, cumSum(binomcdf(14,0 can be randIntNoRep(1,14, saving two bytes at the cost of speed, since order does not matter. Either calc84maniac or Runer112 could have won the contest outright at 44 bytes if they had done this. Both of them noticed that If A≠1 could be optimized to If log(A, which is small but hard to notice.

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: [ENDED] Code Golf Contest #1 (thanks for the many submissions!)
« Reply #62 on: June 12, 2015, 02:26:23 pm »
It looks like we've reached a consensus that, with the [ENDED] tag to clear things up, on-topic necroposting is allowed for after-the-fact optimizations or programming/golf tips. Therefore:

The only optimization I see in the top two TI-BASIC solutions is that on a MathPrint calculator, cumSum(binomcdf(14,0 can be randIntNoRep(1,14, saving two bytes at the cost of speed, since order does not matter. Either calc84maniac or Runer112 could have won the contest outright at 44 bytes if they had done this. Both of them noticed that If A≠1 could be optimized to If log(A, which is small but hard to notice.
Well, I didn't have a MATHPRINT calculator (and others here don't either...take Zeda/Xeda, for example), and I had to be able to test the solutions myself. If anybody makes a solution that requires any TI-84+ OS 2.53 or over, we should make that a separate category. In my opinion.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [ENDED] Code Golf Contest #1 (thanks for the many submissions!)
« Reply #63 on: June 12, 2015, 04:55:20 pm »
I don't think that it should be a separate category, as else for languages like php you'd have to make a separate category for every module you use because it might be disabled in the php.ini .

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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: [ENDED] Code Golf Contest #1 (thanks for the many submissions!)
« Reply #64 on: June 13, 2015, 10:08:13 am »
I don't think that it should be a separate category, as else for languages like php you'd have to make a separate category for every module you use because it might be disabled in the php.ini .
...OK, then I guess MATHPRINT-only commands are disallowed.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?