• [ENDED] (Results Soon) Code Golf - The Reboot #2 4 4
Currently:  

Author Topic: [ENDED] (Results Soon) Code Golf - The Reboot #2  (Read 20092 times)

0 Members and 1 Guest are viewing this topic.

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Code Golf - The Reboot #2
« Reply #15 on: June 09, 2015, 05:46:22 pm »
153 bytes in PICO-8 (sorry Juju ^.^)



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 #2
« Reply #16 on: June 10, 2015, 07:11:58 pm »
Dammit. How.

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 #2
« Reply #17 on: June 10, 2015, 09:55:42 pm »
Do we need to initialize the cursor at all (is it fine if the position of the cursor is the same as it was last session, and the program throws an error if a certain variable has an invalid value?)

Edit: I was told that we don't.

Is it acceptable if moving to the 5984 other pixels on the graph screen works, but not the single pixel (0,0)?

Edit: Never mind, I wasn't able to save that byte.
« Last Edit: June 10, 2015, 10:57:59 pm by lirtosiast »

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 #2
« Reply #18 on: June 11, 2015, 12:43:46 am »
153 bytes in PICO-8 (sorry Juju ^.^)
Wait, did you do the "If a key is held, it doesn't matter. 1 pixel of movement per press." rule? Otherwise, I'm down to 162 bytes now :P

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 LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Code Golf - The Reboot #2
« Reply #19 on: June 11, 2015, 06:31:04 am »
153 bytes in PICO-8 (sorry Juju ^.^)
Wait, did you do the "If a key is held, it doesn't matter. 1 pixel of movement per press." rule? Otherwise, I'm down to 162 bytes now :P
I just used btnp, that was the closest thing to doing that I could figure, I applaud you if you had found a better way of doing that ^.^
EDIT: Nevermind, thought of a good way to do that, I guess my old entry is invalid then, but I think I can implement this without throwing on too many extra characters :P



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 #2
« Reply #20 on: June 11, 2015, 12:05:25 pm »
Yeah, BTNP still returns true every 4 frames, which is not what we want.

EDIT: 153 bytes! Which is the same score you got, but with the 1 pixel of movement per press thing xD

EDIT: 149! I forgot to remove one useless declaration. That's pretty crazy.
« Last Edit: June 11, 2015, 12:52:21 pm by Juju »

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 LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Code Golf - The Reboot #2
« Reply #21 on: June 11, 2015, 04:14:36 pm »
Yeah, BTNP still returns true every 4 frames, which is not what we want.

EDIT: 153 bytes! Which is the same score you got, but with the 1 pixel of movement per press thing xD

EDIT: 149! I forgot to remove one useless declaration. That's pretty crazy.
dam.. now that i fixed key presses, I'm at 202



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 #2
« Reply #22 on: June 11, 2015, 04:38:18 pm »

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 Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Code Golf - The Reboot #2
« Reply #23 on: June 11, 2015, 05:46:29 pm »
I'm down to 137 bytes :3

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 TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Code Golf - The Reboot #2
« Reply #24 on: June 11, 2015, 07:12:29 pm »
I'm curious though, I think you'd have to initialize the pixel somewhere on the screen(IE set an intial value fo the coordinates). Otherwise, it's possible your program will error from the start if the pixel is trying to display out of bounds. Also, just submitted an entry in TI-BASIC. How is size counted for TI-BASIC? Does the program name add to the size(My program name is a single character)?

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #2
« Reply #25 on: June 11, 2015, 07:22:30 pm »
I'm told (this is the way JWinslow23 did it, anyway) that the program size is equal to the sum of the size of each token in your code, or equivalently the size shown on [2nd][MEM], minus the size of the program name, minus nine bytes. So the name doesn't matter.

I asked pimath about initializing the cursor, and they said it was unnecessary.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Code Golf - The Reboot #2
« Reply #26 on: June 11, 2015, 07:24:44 pm »
So how large is a single char program name, and why minus nine additional bytes?

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #2
« Reply #27 on: June 11, 2015, 07:26:06 pm »
The TI operating system has some sort of nine-byte header that it uses to store information about the program; that shouldn't count.

The size of a program name is the number of characters in it; one character=one byte.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Code Golf - The Reboot #2
« Reply #28 on: June 11, 2015, 07:29:11 pm »
Ah, ok. Thanks. If I drop initializing the first pixel that puts me at 60 bytes.

Offline lirtosiast

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +1/-0
    • View Profile
Re: Code Golf - The Reboot #2
« Reply #29 on: June 11, 2015, 07:33:24 pm »
Art_of_camelot, did you remember to avoid key repeat? That was tricky for me.