Author Topic: GAME: Optimize this! (83+BASIC)  (Read 11344 times)

0 Members and 1 Guest are viewing this topic.

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
GAME: Optimize this! (83+BASIC)
« on: August 27, 2007, 05:30:00 am »
Ok, here is the new form of Omnimaga contests: we post a code sample, that is poorly optimized, and you optimize it. It is kinda like a game. Remember the spam forum games? It is the same, except that it's not spam, and it's 100% relevant to calculators. Everyone, give it a shot, this may also help practice your skills or learn more new stuff, and debate about which kind of optimization is better.

Here is the current code to optimize:

c1-->
CODE
ec1ArchivePic1:
{0}→L1:0→R:12→dim(?A):12→dim(?B):12→dim(?C)
FnOff:PlotsOff:Normal:Float:Full:GridOff:AxesOff:ZStandard
ClrDraw:ClrHome
"TTT TTT

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
GAME: Optimize this! (83+BASIC)
« Reply #1 on: August 27, 2007, 08:45:00 am »
french. :(sad.gif j/k

when I get home, I shall get this on my calc and try it.
Omnimaga Admin

Xphoenix

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #2 on: August 27, 2007, 08:55:00 am »
I realize this code is not really compatible with any editor on the computer. Could take a little bit for me to sort this thing out.

EDIT: Erm, is that line that says

"Horizontal(10"

meant to be that way? Or should it be:

"Horizontal (10"

or:

"Horizontal 10"

?

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
GAME: Optimize this! (83+BASIC)
« Reply #3 on: August 27, 2007, 09:10:00 am »
Horizontal 10 because source coders seems to have issue parsing Horizontal x.x

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
GAME: Optimize this! (83+BASIC)
« Reply #4 on: August 27, 2007, 09:13:00 am »
It takes a long time to type this all out on calc... and I'm not even halfway yet x_x
One of these days I'll get a sig I'm really proud of.

Xphoenix

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #5 on: August 27, 2007, 09:33:00 am »
Computer + Copy/Paste?

BTW, about the rules:

1. Are we optimizing for size, and size only?
2. The optimized program merely needs to function like the code, right? (We don't need to base it off that code?

And the second line:

"{0}→L1"

Is it meant to be:

"{0}→?1"

(list 1)?

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
GAME: Optimize this! (83+BASIC)
« Reply #6 on: August 27, 2007, 10:05:00 am »
for size mostly, but if you manage to get it both small and fast it raise your chances of winning. The optimised program must function like the code does, but you can use different code to do it, as long as it works exactly like in the code. and yes it is meant to be list 1

Harrierfalcon

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #7 on: August 27, 2007, 10:48:00 am »
c1-->
CODE
ec1Archive Pic1
DelVar R{0→L1
12→dim(?A
12→dim(?B
12→dim(?C
FnOff
PlotsOff
Normal
Float
Full
GridOff
AxesOff
ZStandard
ClrDraw
ClrHome
"TTT TTT

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
GAME: Optimize this! (83+BASIC)
« Reply #8 on: August 27, 2007, 11:03:00 am »
QuoteBegin-Harrierfalcon+27 Aug, 2007, 21:48-->
QUOTE (Harrierfalcon @ 27 Aug, 2007, 21:48)
c1-->
CODE
ec1Ans(1→A
Ans(2→B
Ans(3→C
Ans(4→D
Ans(5→E
Ans(6→F
Ans(7→G
Ans(8→H
Ans(9→J
Ans(10→T
Ans(11→U
Ans(12→Vc2
ec2  

 You... you can't be serious...
One of these days I'll get a sig I'm really proud of.

Delnar_Ersike

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #9 on: August 27, 2007, 11:54:00 am »
To optimize Harrier's code...
c1-->
CODE
ec1Archive Pic1
DelVar R{0→L1
12→dim(?A
Ans→dim(?B
Ans→dim(?C
FnOff
PlotsOff
Normal
Float
Full
GridOff
AxesOff
ZStandard
ClrDraw
ClrHome
"TTT TTT

Xphoenix

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #10 on: August 27, 2007, 12:27:00 pm »
c1-->
CODE
ec1:ArchivePic1
:12→dim(?A
:12→dim(?B
:12→dim(?C
:FnOff
:PlotsOff
:Normal
:Float
:Full
:GridOff
:AxesOff
:ZStandard
:ClrHome
:"TTT TTT

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
GAME: Optimize this! (83+BASIC)
« Reply #11 on: August 27, 2007, 12:52:00 pm »
Mine's going to take a few more hours/days. I'm doing it on calc, and I'm going to link to the actual program when I submit it :Ptongue.gif
One of these days I'll get a sig I'm really proud of.

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
GAME: Optimize this! (83+BASIC)
« Reply #12 on: August 27, 2007, 01:38:00 pm »
no problem with sub routine, as long as you post all of them  

burr

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #13 on: August 27, 2007, 07:31:00 pm »
c1-->
CODE
ec1:ArchivePic1
:12→dim(LA
:12→dim(LB
:12→dim(LC
:FnOff
:AxesOff
:ZStandard
:ClrHome
:Output(7,2,"Programme par
:Output(8,2,"Kevin Ouellet
:Repeat getKey=105
:Output(1,1,"TTT TTT

Offline Jon

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 278
  • Rating: +0/-0
    • View Profile
GAME: Optimize this! (83+BASIC)
« Reply #14 on: August 27, 2007, 08:20:00 pm »
Heh the Ans(1 thing is easy. just do this each time:
c1-->
CODE
ec1
Ans->A
Ans+Ans->B
Ans+Ans->C
....and so on
c2
ec2