Author Topic: [ENDED] Code Golf Contest #7  (Read 11384 times)

0 Members and 1 Guest are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Code Golf Contest #7
« Reply #15 on: August 28, 2014, 08:05:52 am »
Hum, no, I was rather thinking like being able to do :
Code: [Select]
if a>b c=3;a=b>3?4:5 etc. which would then translate into lua :
Code: [Select]
if a>b then c=3 end a=b>3 and 4 or 5But meh, I don't really have much time right now :p
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Code Golf Contest #7
« Reply #16 on: August 28, 2014, 08:36:08 am »
Hum, no, I was rather thinking like being able to do :
Code: [Select]
if a>b c=3;a=b>3?4:5 etc. which would then translate into lua :
Code: [Select]
if a>b then c=3 end a=b>3 and 4 or 5But meh, I don't really have much time right now :p

Ah, that would definitely be useful. Let me know if you make any progress on it.



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 #7
« Reply #17 on: August 28, 2014, 10:20:45 am »
And I will allow it as a language as soon as it is completed. I mean, I accept AND use Axe, don't I?

Speaking of which, matref, when are you going to submit your entry? You must submit it before the month of September!
« Last Edit: August 28, 2014, 10:35:12 am by JWinslow23 »
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline 3298

  • LV2 Member (Next: 40)
  • **
  • Posts: 26
  • Rating: +1/-0
    • View Profile
Re: Code Golf Contest #7
« Reply #18 on: August 29, 2014, 01:00:15 pm »
Is it OK if I'm getting 2, 36, 38 and 49 on the example string from the first post instead of 2, 4, 38 and 49? Both 4 and 36 are indices of o's between the c and d. If yes, I have a valid 96.5-byte SysRPL solution (74 bytes if case-sensitive).
SysRPL has no case-insensitive string search stuff except for some commands dealing with the edit-line. So I need to search for the uppercase and lowercase character and take the one that's closer to the string end I started at. Due to how "not found" is reported (0 is returned in place of the 1-based index), it's easier to start from the end instead of the begin (max of the two numbers vs. if one of the two is zero, then max else min).
I also have a shorter Java program (189 bytes) and XTend and Haskell programs (163 and 174 bytes).

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Code Golf Contest #7
« Reply #19 on: August 29, 2014, 01:15:44 pm »
poof
« Last Edit: August 29, 2014, 05:09:06 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

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 #7
« Reply #20 on: August 29, 2014, 02:27:05 pm »
Woo! Got a 4 byte C entry! :D
« Last Edit: August 29, 2014, 08:31:29 pm by JWinslow23 »
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Code Golf Contest #7
« Reply #21 on: August 29, 2014, 09:34:03 pm »
I could imagine some trolly rules bending, but in a few more chars than 4 ... so IDK yet :P
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #7
« Reply #22 on: August 29, 2014, 09:37:12 pm »
I could imagine some trolly rules bending, but in a few more chars than 4 ... so IDK yet :P
I have something 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 Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Code Golf Contest #7
« Reply #23 on: August 29, 2014, 10:39:07 pm »
...how? I'm pretty sure it's something like "a();" and there's another files that does the job as well as preprocessor instructions.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

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 #7
« Reply #24 on: August 29, 2014, 10:54:52 pm »
...how? I'm pretty sure it's something like "a();" and there's another files that does the job as well as preprocessor instructions.
In batch. A different trick.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Code Golf Contest #7
« Reply #25 on: August 30, 2014, 09:34:16 am »
something like naming the file with a weird name such that it's actually code and the few chars in the file just call it ? :D

If so, you should make all future challenges comply to the no standards loopholes rules ;)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #7
« Reply #26 on: August 30, 2014, 10:53:46 am »
something like naming the file with a weird name such that it's actually code and the few chars in the file just call it ? :D

If so, you should make all future challenges comply to the no standards loopholes rules ;)
Dude, it's not really an entry. It isn't even counted. I will not accept anything like that ever.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Code Golf Contest #7
« Reply #27 on: August 30, 2014, 11:26:06 am »
Oh I know, but that's for the future challenges. You may want to include the link in the rules, it can't hurt.
(but a lot of them can't apply for calc languages anyway)
« Last Edit: August 30, 2014, 11:27:39 am by Adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #7
« Reply #28 on: August 30, 2014, 11:49:49 am »
Oh I know, but that's for the future challenges. You may want to include the link in the rules, it can't hurt.
(but a lot of them can't apply for calc languages anyway)
People here have had enough common sense not to even submit those kinds of challenges.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Code Golf Contest #7
« Reply #29 on: August 30, 2014, 09:13:48 pm »
which is why we are all wondering what's the magic/crazy-thing/rule-bending behind the 3-4 bytes entry ;)
But I guess we can wait for another day until this challenge is over.
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation