Author Topic: [ENDED] Code Golf - The Reboot #3  (Read 32842 times)

0 Members and 1 Guest are viewing this topic.

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 - The Reboot #3
« Reply #15 on: June 16, 2015, 02:53:32 pm »
I think I have a nice sub-300 in PICO-8, 293 to be exact. And if you remove a line, you can even draw your own starting pattern in the sprite editor!

Speaking of which, the pseudo-random rule, in layman's terms, you should loop through each and every pixel and randomly set it on or off, right? That's what I did anyway.

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 lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #16 on: June 16, 2015, 03:20:12 pm »
159... I can probably go smaller than that in TI-BASIC, but if ben_g can golf it any more I don't have much more room.

I think I have about 160, but I have yet to test it.

Offline c4ooo

  • Project Author
  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 252
  • Rating: +10/-1
  • The impossible chemical compound.
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #17 on: June 16, 2015, 03:45:27 pm »
Nice seeming the replies come in! Friday will be the day when I make the next scoreboard update, mostly for you to keep trying harder and to not stop when you know your position is secure  ;)
I also made a solution in axe to this, which I will probably describe in the postmortem section. It is similar to @ben_g 's solution, but only takes up 110 bytes.
And also a small hint to axe golfers: randomizing the screen only takes 3 bytes :P
-German Kuznetsov
The impossible chemical compound.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Code Golf - The Reboot #3
« Reply #18 on: June 16, 2015, 03:53:30 pm »
I'm kind of screwed with long function and define names in the library I'm using. I could get mine well below 200 if I went in and renamed a few things, but I don't know if that's considered cheating or not.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #19 on: June 17, 2015, 08:22:58 am »
It's actually funny how slow my solution is. I'm testing it out now, and it's taken 30 minutes for two-thirds of a frame. It also runs in O(n2) time where n is the number of pixels on the screen, so if you try it on a CSE while changing the numbers around so it takes up the whole graph screen, it'll take about two days per frame-- if it even works, which I suspect it won't for a different reason.

EDIT: Two things.

First, the spec should add that every possible combination of cells should be supported (to disallow TI-BASIC answers that store all live points in a list and thus won't work with more than 999).

Second, my solution seems to work. I've been testing it for about six hours, and I'm starting to get blocks and blinkers, and even one LWSS!

I saved one byte by halving the speed of the program, so now it's an hour and a half per frame (at 15 MHz), or about one pixel per second. This is ridiculous.
« Last Edit: June 17, 2015, 04:45:48 pm by lirtosiast »

Offline pbfy0

  • LV2 Member (Next: 40)
  • **
  • Posts: 31
  • Rating: +7/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #20 on: June 17, 2015, 01:38:05 pm »
And here I am with my program that runs 10 generations per second
On the other hand, it's 308 296 bytes
« Last Edit: June 18, 2015, 09:58:54 am by pbfy0 »

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #21 on: June 18, 2015, 12:24:33 am »
@pbfy0 what language are you using? That sounds fast for Axe, especially golfed Axe.

I managed to shave one more byte, but now my code takes two hours per frame. I hope you have the patience to test it, c4ooo...

Offline pbfy0

  • LV2 Member (Next: 40)
  • **
  • Posts: 31
  • Rating: +7/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #22 on: June 18, 2015, 09:58:02 am »
I'm using nspire assembly. It's mostly so fast just because the calculator is fast. On the other hand, it's hard to golf past a certain point because all arm instructions are 4 bytes.

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #23 on: June 18, 2015, 12:10:01 pm »
A well-golfed solution is entertaining to create and read even if it's in a verbose language.

The shortest version of my code is fast* again! I'll probably never get close to 110 bytes though.




*one frame every 40 minutes

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 - The Reboot #3
« Reply #24 on: June 18, 2015, 12:49:15 pm »
@pbfy0 what language are you using? That sounds fast for Axe, especially golfed Axe.

I managed to shave one more byte, but now my code takes two hours per frame. I hope you have the patience to test it, c4ooo...
Well, doesn't the emulator Wabbitemu have an option to run TI-83/84/+/SE code at 1600% speed or something? That would mean about 7.5 minutes per frame :P
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: Code Golf - The Reboot #3
« Reply #25 on: June 18, 2015, 12:59:24 pm »
It would only be 3 minutes with my updated code! That's an amazing .005 FPS.

Is anyone else entering the constest in TI-BASIC?

Offline Haobo

  • LV2 Member (Next: 40)
  • **
  • Posts: 27
  • Rating: +4/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #26 on: June 18, 2015, 11:43:14 pm »
And also a small hint to axe golfers: randomizing the screen only takes 3 bytes :P

O_O wanna give a little hint on how you did this?


Smallest I got was 15 the old fashion way...
Projects:
Star Cats
Five Nights at Freddy's
Phoenix Wright

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #27 on: June 19, 2015, 08:05:21 pm »
I have 93 bytes in TI-BASIC, but I think Runer112 has already beaten me in Axe with 88.

This challenge has been very entertaining; in fact, it's even better than I thought.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #28 on: June 21, 2015, 04:07:46 am »
So, I don't think my entry will be finished today, but I'm still going to post it here when I have it finished.

Offline c4ooo

  • Project Author
  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 252
  • Rating: +10/-1
  • The impossible chemical compound.
    • View Profile
Re: Code Golf - The Reboot #3
« Reply #29 on: June 21, 2015, 06:20:56 pm »
I have extended the deadline from @pimathbrainiac's "11:59:59 PM ET Saturday" to 11:59:59 PM ET Sunday. From the beginning i believed that  11:59:59 PM ET Sunday was the deadline, and thought pimathbrainiac made a typo when he said Saturday. Although the deadline for this challenge is 11:59:59 PM ET Sunday, following challenges will most likely have the deadline of 11:59:59 PM ET Saturday.
« Last Edit: June 21, 2015, 06:35:32 pm by c4ooo »
-German Kuznetsov
The impossible chemical compound.